Updated Introduction to Editor Scripting.md (markdown)
commited
commit
a1a1f6fef8cf48034222c7e128978e2c47147078
... | ... | @@ -109,7 +109,7 @@ let justATree = { |
109 | 109 | for (let c in this.components) { |
110 | 110 | for (let i = 0; i < (c[1][0] * c[1][1] * c[1][2]); i++) { |
111 | 111 | // the "this" keyword refers to the object it is inside to, |
112 | // in this case the "justATree" but since its not yet defined as that we use "this"
|
|
112 | // we use "this" when the object is not or not yet defined by a variable
|
|
113 | 113 | setBlock(this.x + x, this.y + y, this.z + z, 0); |
114 | 114 | } |
115 | 115 | } |