#How can I change the loot of the vanilla entities?

1 messages · Page 1 of 1 (latest)

summer lily
#

I have created an addon that require for zombies to drop gunpowder.
This is what I tried:

AddOn BP > loot_tables > entities > zombie.json

What am I doing wrong? Zombies are not dropping anything now :c
Script on the comments:

#

First part:
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:rotten_flesh",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": {
"min": 0,
"max": 2
}
},
{
"function": "looting_enchant",
"count": {
"min": 0,
"max": 1
}
}
]
}
]
},

#

Second part:
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:gunpowder",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 6
}
},
{
"function": "looting_enchant",
"count": {
"min": 0,
"max": 3
}
}
]
}
]
},
{
"conditions": [
{
"condition": "killed_by_player_or_pets"
},
{
"condition": "random_chance_with_looting",
"chance": 0.5,
"looting_multiplier": 1
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:iron_ingot",
"weight": 5
},
{
"type": "item",
"name": "minecraft:copper_ingot",
"weight": 5
},
{
"type": "item",
"name": "minecraft:carrot",
"weight": 1
},
{
"type": "item",
"name": "minecraft:potato",
"weight": 1
},
]
}
]
}