Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-181978

Chest with custom Loottable has no Loot, when you open in Adventure Mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2
    • None
    • Unconfirmed
    • (Unassigned)

      If you buy a chest with a custom Loottable (by a villager) and open it, you get no loot, if you are in the adventure mode. In the creative mode, you get it.

      The Shop:

      summon minecraft:villager 120 110 7 {Invulnerable:1b,CustomNameVisible:1b,Team:"Blau",CanPickUpLoot:0b,Willing:0b,Rotation:[180F,0F],CustomName:'{"text":"Sonstiges/Others"}',VillagerData:{level:5,profession:"minecraft:nitwit",type:"minecraft:desert"},Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:iron_ingot",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:bread",Count:4b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"item.minecraft.bread","color":"gray"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:iron_ingot",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:cooked_beef",Count:2b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"item.minecraft.cooked_beef","color":"gray"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:cake",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"block.minecraft.cake","color":"green"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:2b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:golden_apple",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"item.minecraft.golden_apple","color":"green"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:3b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:chest",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"block.minecraft.chest","color":"green"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:15b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:ender_chest",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"block.minecraft.ender_chest","color":"gold"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:20b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:chest",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,display:{Name:'{"text":"Lucky Chest","color":"gold","italic":true}'},BlockEntityTag:{LootTable:"bedwars:lucky",CustomName:'{"text":"Lucky Chest"}'}}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:gold_ingot",Count:10b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:tnt",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"block.minecraft.tnt","color":"gold"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:iron_ingot",Count:2b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:flint_and_steel",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"item.minecraft.flint_and_steel","color":"gray"}'},HideFlags:61,Unbreakable:0b,Damage:64,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:diamond",Count:3b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:ender_pearl",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"item.minecraft.ender_pearl","color":"gold"}'},HideFlags:61,Unbreakable:1b,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}]}}},{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:iron_ingot",Count:60b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},buyB:{id:"minecraft:iron_ingot",Count:60b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],HideFlags:25,Enchantments:[{id:"minecraft:vanishing_curse",lvl:0s}]}},sell:{id:"minecraft:sheep_spawn_egg",Count:1b,tag:{CanPlaceOn:["#place"],CanDestroy:["#break"],display:{Name:'{"translate":"entity.minecraft.iron_golem","color":"light_purple"}'},HideFlags:61,Enchantments:[{id:"minecraft:vanishing_curse",lvl:1s}],EntityTag:{Silent:1b,Invulnerable:1b,Team:"Blau",DeathTime:1,DeathLootTable:"no",NoAI:1b,CanPickUpLoot:0b,Sheared:0b,Color:11b,Tags:["Eisengolem"]}}}}]}}
      

      (It is for Bedwars)

      Loottable:

      {"type":"chest","pools":[{"rolls":2,"bonus_rolls":{"min":1,"max":3},"entries":[{"type":"item","weight":50,"name":"minecraft:iron_ingot","functions":[{"function":"set_count","count":20},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:25,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:0s}]}"}]},{"type":"item","weight":40,"name":"minecraft:gold_ingot","functions":[{"function":"set_count","count":12},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:25,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:0s}]}"}]},{"type":"item","weight":30,"name":"minecraft:emerald","functions":[{"function":"set_count","count":4},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:25,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:0s}]}"}]},{"type":"item","weight":20,"name":"minecraft:diamond","functions":[{"function":"set_count","count":3},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:25,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:0s}]}"}]},{"type":"item","weight":10,"name":"minecraft:diamond_sword","functions":[{"function":"set_count","count":1},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:63,Unbreakable:1b,Enchantments:[{id:\"minecraft:sharpness\",lvl:5s},{id:\"minecraft:vanishing_curse\",lvl:1s}],AttributeModifiers:[{AttributeName:\"generic.maxHealth\",Name:\"generic.maxHealth\",Amount:6,Operation:0,UUIDLeast:763391,UUIDMost:608604},{AttributeName:\"generic.attackSpeed\",Name:\"generic.attackSpeed\",Amount:1024.0,Operation:0,UUIDLeast:590642,UUIDMost:507648}]}"},{"function":"set_name","name":{"text":"Excalibur","color":"red"}},{"function":"set_lore","lore":[[{"translate":"enchantment.minecraft.sharpness"},{"text":" "},{"translate":"enchantment.level.5"}]]}]},{"type":"item","weight":10,"name":"minecraft:lava_bucket","functions":[{"function":"set_count","count":1},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:63,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:1s}]}"}]},{"type":"item","weight":10,"name":"minecraft:snowball","functions":[{"function":"set_count","count":64},{"function":"set_nbt","tag":"{CanPlaceOn:[\"#place\"],CanDestroy:[\"#break\"],HideFlags:63,Enchantments:[{id:\"minecraft:vanishing_curse\",lvl:1s}],AttributeModifiers:[{AttributeName:\"generic.knockbackResistance\",Name:\"generic.knockbackResistance\",Amount:5,Operation:0,UUIDLeast:348626,UUIDMost:853956,Slot:\"mainhand\"}]}"}]}]}]}

            Unassigned Unassigned
            Luki2811 Lukas Schmeißer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: