Loot table dont work

Started by cuckoo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot table dont work

So ive set up a simple loot table called Books and ive set the registry name to books and it type to chest,then I hop in the mc and place a command block with /data merge block ~ ~-2 ~ {LootTable:"books"} and a chest two block below.I added a button then press it,Nothing happened,no error,and Im sure my loot table is filled with pool entry

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
show me your code
Tue, 09/21/2021 - 12:58

show me your code

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this happens to me too! I…
Tue, 09/21/2021 - 14:48

this happens to me too! I have no idea why it worked and after hours of searching I just had to remove it

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
didn't worked*
Tue, 09/21/2021 - 14:49

didn't worked*

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
{   "type": "minecraft:chest…
Wed, 09/22/2021 - 06:54

{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "min": 1,
        "max": 2
      },
      "bonus_rolls": {
        "min": 0,
        "max": 3
      },
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:enchanted_book",
          "weight": 50,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 5
              }
            },
            {
              "function": "enchant_with_levels",
              "treasure": true,
              "levels": {
                "min": 1,
                "max": 5
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_ingot",
          "weight": 25,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 15
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:cooked_beef",
          "weight": 25,
          "functions": [
            {
              "function": "set_count",
              "count": {
                "min": 1,
                "max": 25
              }
            }
          ]
        }
      ]
    }
  ]
}

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ive followed NorthWest…
Wed, 09/22/2021 - 06:55

Ive followed NorthWest gaming tutorial and the command i use is /data merge block ~ ~-2 ~ {LootTable:"books"}

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FIXED you need to put your…
Wed, 09/22/2021 - 07:06

FIXED you need to put your mod mod id,for ex, my mod id is penguin_boss and my loot is in chest/books then the command should be "/data merge block {LootTable: "penguin_boss:chest/books}"

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean /data merge block ~ ~…
Wed, 09/22/2021 - 07:16

I mean /data merge block ~ ~-2 ~ {LootTable: "penguin_boss:chests/books"}