Updated Introduction to Editor Scripting.md (markdown)
commited
commit
4d4d9a1d19fc6a658b962046134374ab009a343c
... | ... | @@ -107,7 +107,7 @@ let justATree = { |
107 | 107 | }, |
108 | 108 | build: () => { |
109 | 109 | for (let c in this.components) { |
110 | while ((sx * sy * sz) < 0) { |
|
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 | 112 | // in this case the "justATree" but since its not yet defined as that we use "this" |
113 | 113 | setBlock(this.x + x, this.y + y, this.z + z, 0); |