MakeCode position tip
I wanted to share a simple position tip for MakeCode.
It is some times tedious to fiddle with the positions when using fill, replace and clone commands. If you are familiar with the WorldEdit mod on the Java edition, you know there is a command called pos1 and pos2 to set positions that can be used with various commands to fill, replace, clone etc. You can do this with MakeCode too.
First make a command called pos1. Read the current position and put the X, Y and Z into separate variables. Then do the same with pos2 using different variables. Then make your fill, replace or clone command. Next just walk around in your world and type "pos1" where you want to start. Then find the next position and type "pos2". Last execute your fill/replace/clone command and there you have it.
An example is attached.
It is some times tedious to fiddle with the positions when using fill, replace and clone commands. If you are familiar with the WorldEdit mod on the Java edition, you know there is a command called pos1 and pos2 to set positions that can be used with various commands to fill, replace, clone etc. You can do this with MakeCode too.
First make a command called pos1. Read the current position and put the X, Y and Z into separate variables. Then do the same with pos2 using different variables. Then make your fill, replace or clone command. Next just walk around in your world and type "pos1" where you want to start. Then find the next position and type "pos2". Last execute your fill/replace/clone command and there you have it.
An example is attached.
0
-
This sounds really useful! Does this work with other coding applications? 0 -
Absolutely. It works with all the place/fill/clone functions.
More tips can also be found on the MakeCode for Minecraft group on Facebook :)0 -
thanks you 0 -
How do I see the attached example?
0
Please sign in to leave a comment.
Comments
4 comments