Frequently asked questions in Scripting: Difference between revisions

Add How to copy a custom block?
m (Link to article)
(Add How to copy a custom block?)
Line 21: Line 21:


== How to delete a block? ==
== How to delete a block? ==
:''Main article: [[Editor#Custom blocks]]''


To delete a custom block permanently, first make sure there are no copies of the block/script in the world or inside any other block.
To delete a custom block permanently, first make sure there are no copies of the block/script in the world or inside any other block.
Then grab the block you want to delete and drag it, you should see a red X appear in the bottom right corner, drag the block there and it'll get deleted.
Then grab the block you want to delete and drag it, you should see a red X appear in the bottom right corner, drag the block there and it'll get deleted.
== How to copy a custom block? ==
A method commonly used is: edit another game, usually a new blank game, and then place the custom block by finding the folder of that game in the inventory.
Afterwards, return to said game and drag that block (of the other).
A pencil button should appear.


== How to rotate a block? ==
== How to rotate a block? ==


There is currently no way to rotate blocks in build-mode.
Likewise, there is currently no way to rotate blocks in build-mode.
If you must have a block with multiple rotations, you'll have to make multiple blocks.
If you must have a block with multiple rotations, you'll have to make multiple blocks.
An alternative is to rotate the object in play-mode, using [[Set Position]].
An alternative is to rotate the object in play-mode, using [[Set Position]].