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

Topic category: Help with modding (Java Edition)

Last seen on 14:23, 13. Apr 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make it so if I mine a block with a certain item, I get a different block?

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 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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