Loot table dont work

Started by cuckoo on

Topic category: Help with modding (Java Edition)

Last seen on 15:52, 24. Feb 2024
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

Last seen on 08:00, 11. Jul 2023
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

Last seen on 04:28, 26. Jan 2024
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

Last seen on 04:28, 26. Jan 2024
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*

Last seen on 15:52, 24. Feb 2024
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
              }
            }
          ]
        }
      ]
    }
  ]
}

Last seen on 15:52, 24. Feb 2024
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"}

Last seen on 15:52, 24. Feb 2024
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}"

Last seen on 15:52, 24. Feb 2024
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"}