[MCPE-19976] Loot/Dungeon Chest No Longer Have Enchanted Books Created: 12/Feb/17  Updated: 13/Mar/17  Resolved: 13/Mar/17

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.0.3, 1.0.4.1
Fix Version/s: 1.0.5.0

Type: Bug
Reporter: Kimboy Claro
Resolution: Fixed Votes: 0
Labels: None

Attachments: File Test Loot for Books.mcworld    
Confirmation Status: Confirmed
Platform: Tablet - iOS - iPad Mini
CHK:
ADO: 61595

 Description   

As most of us know that there will be a chance of generating of enchanted books in loot chest or dungeon chest. But in this current version, it only generate normal books rather than enchanted books.



 Comments   
Comment by Mr.SCane [ 13/Mar/17 ]

Fixed in 1.0.5.0

Comment by [Mojang] Mega_Spud (Jay Wells) [ 13/Feb/17 ]

In the above mentioned seed and attached world, you can see enchanted books working correctly in the stronghold library at 844 50 -583

Comment by [Mojang] Mega_Spud (Jay Wells) [ 13/Feb/17 ]

This seems plausible.

I'll attach a test world with a Desert Temple - The chests contain plain books.
(Seed -1515371774 Coordinates: 313 53 -246 )

The vanilla loot tables contain "function": "enchant_randomly" which is perhaps not working properly or is defunct.

If that is the case, then the following will be affected and will need adjusting:

  • abandoned_mineshaft
  • desert_pyramid
  • monster_room
  • simple_dungeon

Compare this with the loot table for Stronghold libraries:

{
          "type": "item",
          "name": "minecraft:book",
          "weight": 10,
          "functions": [
            {
              "function": "enchant_with_levels",
              "levels": 30,
              "treasure": true
            }
          ]
        }

Suggested fix: Change loot tables to match the format of the

  • stronghold_library.json
  • jungle_temple.json
  • stronghold_corridor.json
  • stronghold_crossing.json
  • stronghold_library.json
Generated at Sat Jan 11 15:25:18 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.