mojira.dev
MC-122729

SinglePlayer Loottable

Hey Guys 😉
Still having problems to create a successful loottable.
I want to go fishing...
There are 4 types of treasure:
(Junk),(Treasure),(Treasure1),(Fish) as described below

"pools": [
        {
            "rolls": 1,
            "entries": [
                {
                    "type": "loot_table",
                    "name": "minecraft:gameplay/fishing/junk",
                    "weight": 20,
                    "quality": 2
                },
                {
                    "type": "loot_table",
                    "name": "minecraft:gameplay/fishing/treasure",
                    "weight": 10,
                    "quality": 2
                },
                {
                    "type": "loot_table",
                    "name": "minecraft:gameplay/fishing/fish",
                    "weight": 50,
                    "quality": 1
                },
				{
					"type": "loot_table",
                    "name": "minecraft:gameplay/fishing/treasure1",
                    "weight": 20,
                    "quality": 1
				}
            ]
        }
    ]
}

As far as i can see, 3 of them are working (Junk),(Treasure1),(Fish). Only (Treasure) isn't working.

The Components of Treasure is:

{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "item",
          "name": "minecraft:mob_spawner",
          "weight": 1
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:creeper}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:skeleton}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:wither_skeleton}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:spider}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:zombie}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:zombie_villager}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:husk}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:villager}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:pig}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:sheep}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:Cow}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:chicken}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:rabbit}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:wolf}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:minecraft:ocelot}}"
            }
          ]
        },
        {
          "type": "item",
          "name": "minecraft:spawn_egg",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{EntityTag:{id:Cat}}"
            }
          ]
        }
      ]
    }
  ]
}

Just to describe:
I want to get as a reward in this table randomly generated a Spawnegg or (if very lucky) a MobSpawner.

Where is my mistake ?

Comments 3

Hi there, forgot to show the pre-selection:

{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "loot_table",
"name": "minecraft:gameplay/fishing/junk",
"weight": 20,
"quality": 2
},
{
"type": "loot_table",
"name": "minecraft:gameplay/fishing/treasure",
"weight": 10,
"quality": 2
},
{
"type": "loot_table",
"name": "minecraft:gameplay/fishing/fish",
"weight": 50,
"quality": 1
},
{
"type": "loot_table",
"name": "minecraft:gameplay/fishing/treasure1",
"weight": 20,
"quality": 1
}
]
}
]
}

You forgot the very first opening bracket in fishing.json.

Aside from that, this is a bug tracker, not a help desk.

Thx for help. Sry for that. I thought, the net was full of sources... But i'm unable to find any reliable site. Just those with 'modifications' like Spigot,Bukkit and others, i'd never use.

Mario Koehler

(Unassigned)

Unconfirmed

Minecraft 1.12.2

Retrieved