Description
Random Block Drops
Break a block. Get something completely different.
**Random Block Drops** changes what happens when you mine, chop or dig: instead of the normal drop, every broken block gives you **one random item** picked from every item registered in the game.
Dirt might give you a diamond. Diamond ore might give you a dirt block... or a banner, or a music disc, or a boat. You never know.
## Features
- 🎲 One random item for every block you break
- 📦 Picks from all items in the game, including items added by other addons
- 🧩 **NEW:** adjustable chance for items from other addons to drop (0–100%)
- 🚫 Technical and unobtainable items are excluded (command blocks, barriers, structure blocks, etc.)
- 🛠️ Creative mode is not affected
- ⚡ Lightweight, no resource pack, no extra assets
- 🧱 Built on the stable Minecraft Script API (`@minecraft/server`)
## Add-on item drop chance (new in 1.1.0)
By default, every item has the same chance to drop. Vanilla Minecraft has about a thousand items, so items from other addons show up rarely. Now you can raise that chance.
Run this command in your world (requires operator permissions / cheats enabled):
`/scriptevent rbd:addon <0-100>`
| Command | What it does |
|---|---|
| `/scriptevent rbd:addon 50` | 50% of drops are a random item from other addons, the rest are random vanilla items |
| `/scriptevent rbd:addon 100` | Every drop is an item from other addons |
| `/scriptevent rbd:addon 0` | Addon items never drop, only vanilla items |
| `/scriptevent rbd:addon off` | Back to default: all items have an equal chance |
| `/scriptevent rbd:addon` | Shows the current setting and how many addon items were found |
The setting is saved in the world, so it stays after you leave and rejoin.
Perfect for "Minecraft, but every drop is random and modded" videos and challenges: install your favourite item addons, set the chance, and start mining.
> If no other addon with items is enabled in the world, only vanilla items will drop.
## Installation
1. Download `RandomBlockDrops.mcaddon`.
2. Open the file. Minecraft will import it automatically.
3. Create or edit a world and enable **Random Block Drops** in the **Behavior Packs** section. Enable any other item addons you want to include too.
4. Play in Survival and start breaking blocks.
## Important notes
- The addon turns off the `doTileDrops` game rule in the world so normal drops don't appear. This means blocks destroyed by explosions, pistons or water will not drop anything either.
- If you remove the addon from a world, run this command to restore normal drops:
`/gamerule doTileDrops true`
- If the addon doesn't load on your version, check the Content Log (Settings → Creator) for the required `@minecraft/server` version.
## Compatibility
Designed for Minecraft Bedrock Edition 26.x. Uses only the stable Script API, so it should work across minor updates. If something breaks after an update, leave a comment and I will fix it.
## FAQ
**Does it work in multiplayer?**
It works for all players in the world, as long as the pack is enabled for that world or server. Only operators can change the addon item chance.
**Can I raise the chance of getting items from other addons?**
Yes, since version 1.1.0. Use `/scriptevent rbd:addon <0-100>`, see the section above.
**Can I change how many items drop?**
Not yet, but it is planned. Suggestions are welcome in the comments.
**Does it work with other addons?**
Yes. Items from other addons are included in the random pool, and you can control how often they drop.
**Can I use it in my modpack or video?**
Yes, just credit the project and link back to this page.
## Changelog
**1.1.0**
- Added adjustable chance for items from other addons: `/scriptevent rbd:addon <0-100|off>`
- The setting is saved per world
**1.0.0**
- Initial release
