Random item drop Addon

Every block drops a random item!
26fca262-53b0-42bf-b196-a8e65c0e9c21.jpeg

26fca262-53b0-42bf-b196-a8e65c0e9c21.jpeg

Description

 

Once you break a block for the first time, the block gets an random minecraft item assigned to the block you just broke.

You will receive a chat message with the source block to the random item new loot. 

Usefull commands:

  • /reset
      • This comand let you reset the loots. So if dirt got assigned to diamond, then, after the /reset, dirt will receive another loot.
      • Only operators can execute this command.
  • Other commands will be introduced in a future update if I receive helpful comments on this post.

Advanced default loot setup:

If you're able to access to the Minecraft game files, you can find this addon file in the behavior_packs folder. Then you can go to "Addon/scripts/SETUP". In this file you will find an empty Javascript array. You will need to add a Javascript object structured like this:

{from: "minecraft:dirt", to: "minecraft:diamond"}

The "from" element represents the block that is broken and the "to" element is the item that gets looted.

If you add more custom loot it should look like this:

export const lootBase = [
     {from: "minecraft:dirt", to: "minecraft:diamond"},
     {from: "minecraft:stone", to: "minecraft:netherite_ingot"}
]
Dont forget the comma between the curly brakets: {...},{...},{...}
I hope that you will enjoy my addon!
 

The Random item drop Addon Team

profile avatar
  • 3
    Followers
  • 1
    Projects
  • 806
    Downloads