Started by
meelz_on_wheelz
on
Topic category: Help with Minecraft modding (Java Edition)
I'm attempting to make a "hammer" tool where if you break a stone or cobblestone block with it it drops rock pieces. How do I make this happen with the procedures?
Hammer Condition: when block is broken with tool
(If you don't want the original block to drop itself:)
Procedure: Destroy block without drop
Spawn gem at x y z rock_pebble
Code:
If ( [Get Item In Main Hand] == ["Obsidian Pickaxe"] ) Then (
[Spawn Gem At [X] [Y] [Z] ["Obsidian Nugget"] ]
)
Oh sry, I didn't read the full comment - New Code:
If ( [Get Block At [X] [Y] [Z] ] == ["Obsidian"] ) Then (
[Spawn Gem At [X] [Y] [Z] ["Obsidian Chunk"] ]
)