How do I make it so if I mine a block with a certain item, I get a different block?

Started by FRAGMENTED_VOID on Sun, 08/01/2021 - 11:26

Topic category: Help with modding (Java Edition)

Last seen on 16:25, 20. Sep 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make it so if I mine a block with a certain item, I get a different block?
Sun, 08/01/2021 - 11:26

Ok, I know that I explained it badly but I'm just wondering if I break grass or dirt, and mine it with an item, it would give me a different block?
Example: I mine dirt with a spoon and I get clumps of dirt

Last seen on 23:13, 22. Sep 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
    Image 1: Procedure…
Mon, 08/02/2021 - 17:55

Procedure

 

In Game

 

Image 1: Procedure. basically where the Dirt block is, that's the block it was broken. Where the sword is, that's the item the player broke the block with. Where the glass is, that's what block it's gonna drop.

 

Image 2: In game function

Last seen on 23:13, 22. Sep 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
By the way to see the images…
Mon, 08/02/2021 - 17:56

By the way to see the images just right click them and click Open Image In New Tab