How to tell a item to place a block at Y:+1 block level?

Started by Darth Feanor on

Topic category: Help with modding (Java Edition)

Last seen on 21:28, 29. Mar 2020
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to tell a item to place a block at Y:+1 block level?

So, I made a item that would place a block, but said block is being placed in the ground, thus replacing what was there before. How can I tell it to place the block at one block higher than where I am looking.(like placing a normal block)

Last seen on 01:26, 21. Jan 2020
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know how to make it…
Sat, 04/13/2019 - 20:23

I don't know how to make it exactly like a normal block, but you could use the "math" tab of making a procedure. Instead of it being "place block at X:X Y: Y Z: Z" replace Y with Y + 1. The + and the 1 comes from the math tab.

Last seen on 21:28, 29. Mar 2020
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tried that, it places the…
Sat, 04/13/2019 - 21:55

Tried that, it places the block at Y:1 it I set it like that.