Item function spawn railroads

Started by KetchupMonster69 on

Topic category: Help with modding (Java Edition)

Last seen on 13:41, 4. Aug 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item function spawn railroads

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.

Last seen on 19:06, 21. Nov 2020
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure if this would work …
Thu, 07/16/2020 - 14:03

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

Last seen on 13:41, 4. Aug 2021
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried that and got it to…
Thu, 07/16/2020 - 17:37

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

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just add 1 to the y…
Tue, 07/21/2020 - 15:22

Just add 1 to the y coordinate,

Last seen on 13:16, 28. Aug 2021
Joined Oct 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is possible to make this…
Tue, 07/21/2020 - 16:29

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.