How do I make such a loot block?

Started by MisterSmeet on

Topic category: Help with Minecraft modding (Java Edition)

Active 14 hours ago
Joined Mar 2024
Points:
475

User statistics:

  • Modifications: 0
  • Forum topics: 66
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 88
How do I make such a loot block?
Sat, 04/12/2025 - 12:20 (edited)

If you get a block with a pickaxe, the block itself falls out, if an object falls out with your hand,  spawn item how do I do this?

Edited by MisterSmeet on Sat, 04/12/2025 - 12:20
Active 1 month ago
Joined Oct 2023
Points:
372

User statistics:

  • Modifications: 11
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 70
check when the player breaks…
Sat, 04/12/2025 - 17:32

check when the player breaks the block if the player is holding nothing

than use the drop item procedure to drop an item