Loot table dont work

Started by cuckoo on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2020
Points:
846

User statistics:

  • Modifications: 2
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 132
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

Active 2 years ago
Joined Sep 2021
Points:
608

User statistics:

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

show me your code

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 year ago
Joined Oct 2020
Points:
1626

User statistics:

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

didn't worked*

Active 1 year ago
Joined Jan 2020
Points:
846

User statistics:

  • Modifications: 2
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 132
{   "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
              }
            }
          ]
        }
      ]
    }
  ]
}

Active 1 year ago
Joined Jan 2020
Points:
846

User statistics:

  • Modifications: 2
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 132
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"}

Active 1 year ago
Joined Jan 2020
Points:
846

User statistics:

  • Modifications: 2
  • Forum topics: 23
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 132
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}"

Active 1 year ago
Joined Jan 2020
Points:
846

User statistics:

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

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