Moving Blocks after Placement

Started by herrcookie on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 days ago
Joined Jan 2025
Points:
72

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Moving Blocks after Placement

Yo guys, So I wanted to make a Storage Shelf Mod but since i made it in Blockbench i had to move it under the grid which means when i place it in Minecraft, it gets placed in the Block under that I placed it on. So I wanted to ask if there is any way for me to make it so that when i place it it gets moved 1 block higher.

:D

Active 3 hours ago
Joined Sep 2024
Points:
140

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
you could do, GLOBAL TRIGGER…
Wed, 02/19/2025 - 11:13

you could do,

GLOBAL TRIGGER: Player places a block

if block is the same as <shelf_name>

remove block at x y z

place <shelf_name> at x y z

(Find block placement and removing in Block procedures > Actions and if block in Flow Control)