Updated Introduction to Editor Scripting.md (markdown)
commited
commit
e1e628df21de1026fdbaa77f5332dd7a83ca9e46
... | ... | @@ -20,7 +20,7 @@ setBlock(0, 0, 0, 3); |
20 | 20 | ``` |
21 | 21 | Copy this code and paste it in the editor, then hit `Run` and `Save and Close`. As you might have guessed, this puts a block on the coordinates `(0, 0, 0)`. The fourth value is the unique identifier for the Grass block to be placed. There is a list of unique ids for each built-in block, but what if we want to place a custom block instead? |
22 | 22 | |
23 | #### Find Block |
|
23 | ##### Find Block |
|
24 | 24 | [Create a custom block](/wiki/build/how-do-i-make-my-own-custom-blocks), for instance `My Block`. Then replace your previous code with this one: |
25 | 25 | ```js |
26 | 26 | // Find the block called "My Block" |