promotional bannermobile promotional banner

Treasure Trees | Some Trees Hide a Loot Chest

Break a log and, one tree in ten by default, the log turns into a chest full of loot: common, rare, epic or legendary, from food and iron to enchanted gear, totems and named netherite gear. Only trees the game grew count.
hero-treasure.png

hero-treasure.png

tiers.png

tiers.png

legendary.png

legendary.png

Description

Some trees hide a loot chest in the trunk. Break a log and, one tree in ten by default, the log turns into a chest full of loot: food and iron, enchanted gear, totems, or named netherite gear. Stable Script API, no experiments, no custom blocks.

How it works

  • Break any log of a tree the game grew. If that trunk is a treasure tree, the log you broke becomes a filled chest (you still get the log). A sound and a line above the hotbar tell you the tier.
  • Which trees hide a chest is fixed per world, so breaking a trunk's logs in any order gives the same answer. Each trunk gives one chest, and the world remembers it.
  • Only trees count: logs placed by players, log houses, fences of logs and stripped logs never turn into chests. A tree needs leaves the game grew touching it; saplings you plant grow those, so tree farms count too.
  • Oak, spruce, birch, jungle, acacia, dark oak, cherry, mangrove and pale oak. Nether stems don't count.

The chests

Tier Chance What's inside
Common 55 in 100 Five stacks of food, iron, gold, coal, copper, emeralds, lapis, arrows, torches
Rare 30 in 100 Diamonds, golden apples, ender pearls, bottles o' enchanting, a name tag or saddle, enchanted iron gear, a diamond axe, a bow; plus common stacks
Epic 12 in 100 Diamond gear with the top enchantments, an enchanted golden apple, a totem of undying, a netherite ingot, a trident; golden apples; plus common stacks
Legendary 3 in 100 Two of eight named pieces: Heartwood Edge, Rootbreaker, Timberfall, Barkskin Plate, Canopy Crown, Rootwalkers (netherite gear with every top enchantment), Windleaf Bow, Seedwing (an elytra); two enchanted golden apples, two netherite ingots and 16 diamonds

Enchantments never go above the game's own maximum.

Commands and settings

  • /treasuretrees: the odds and how many chests you have found.
  • Operators: /treasuretreeschest common|rare|epic|legendary puts a chest of that tier at your feet, to see what it holds.
  • Operators: /treasuretreesconfig lists the settings; /treasuretreesconfig setting number (switches as 1 or 0) or /treasuretreesconfigtext setting on changes one, saved in the world. They also sit at the top of scripts/main.js.
  • Settings: enabled, chancePercent (10), rarePercent (30), epicPercent (12), legendaryPercent (3), needNaturalLeaves (on), workInCreative (off), announceLegendary (on: tells everyone in chat).

Tested

Tested on Bedrock Dedicated Server 1.26.63; not yet seen in a real game client.

  • 29 checks with a simulated player in a Beta-APIs test world (the add-on itself uses no beta API): real log breaks with a netherite axe. At 100%, a natural oak became a filled chest and the log still dropped; a second log of the same trunk gave nothing; trunks with only placed leaves, bare log columns and stripped logs gave nothing; all eight other woods gave chests; a sapling grown with bone meal gave one too. At 0%, switched off and in creative: no chest. At 50%, 40 trees gave 23 chests. Forced Legendary, Epic and Common chests held what the table says (Legendary: named gear with four or more top enchantments, the elytra two, plus enchanted golden apples and netherite). /treasuretreeschest filled a chest for all four tiers. After a server restart the used trunk still gave no second chest and the settings were kept.
  • 37 checks with real network clients in a world with no experiments and cheats off, shared with Titan Form and Wilder Biomes: the commands reaching the client, operator-only commands refused for others, the default odds, settings surviving a restart and /reload. After the run, level.dat still shows cheats off and no experiment ever used.
  • 50 checks on the shipped files (shared with the other two packs): manifest, stable API 2.1.0 only, the settings block at the top of the script, sound and particle names found in the installed game's own lists, and a scan for other franchises' names.

Not tested: a real phone, console or PC client, or a real Realm. Nobody has opened one of the chests on a screen. Most trees in the tests were built by the test script with leaves the game treats as grown, plus one grown from a sapling; trees from world generation were not chopped. Running it beside Tree Feller, Vein Miner or Random Block Drops was not tested. No achievement was earned in a test; the tag means level.dat shows no experiment and cheats off.

Install: open the .mcaddon, then add the behaviour pack to your world. Needs Minecraft 1.21.100 or newer (stable Script API 2.1.0); it has only been run on 1.26.63. Licence: MIT.

Not affiliated with Mojang or Microsoft.

More free tools: actuallyop.com

Treasure Trees | Some Trees Hide a Loot Chest Team

profile avatar
  • 3
    Followers
  • 90
    Projects
  • 7.4K
    Downloads

More from molonlav3View all