Item function spawn railroads

Started by KetchupMonster69 on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

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

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,

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.