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
You forgot the very first opening bracket in fishing.json.
Aside from that, this is a bug tracker, not a help desk.
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
}
]
}
]
}