Started by
KetchupMonster69
on
Topic category: Help with Minecraft modding (Java Edition)
So I want to be able to make an item I made whenever I right click on the ground I want it to be able to spawn railroad tracks in the direction I’m facing either for a set amount or until they collide with a block I’m not sure how to do this. I’m pretty new to procedures and coding things in MC Creator. Would also help me out if you guys know a great place to learn the coding and procedure part of MC Creator would greatly appreciate it.
Not sure if this would work
When right-click
place "certain block" x y x
meaning where you are looking
Tell me i it works
I tried that and got it to place a railroad but for some reason it replaces the block I'm trying to place it on
Just add 1 to the y coordinate,
It is possible to make this idea. You just need to get the direction of the player, and then repeat if (newBlockLoc.) equals air then it would place a block +1 in the direction.