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

Started by Darth Feanor on

Topic category: Help with Minecraft modding (Java Edition)

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)

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.

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.