Started by
FluvKii
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a potion effect that makes it so that when you place a block, it immediately despawns and returns to your inventory, and when you break a block, it doesnt spawn an item entity and respawns. This will be used for bossfights, so I can make custom arena structures that can't be modified by players. Is anyone able to help me with this? It would be much appreciated! :D
Edited by FluvKii on Mon, 04/21/2025 - 00:17
Just use global triggers for that.
A block is broken - global trigger
- Is Entity a Player (the one who broke the block gets added as a variable)?
- Place Get block at XYZ at XYZ
A block is placed - also a global trigger
- Is Entity a Player?
- Break block at XYZ Drop at XYZ
Good luck with the mod!