1

1.9 Loot Tables help?

Runninlikcraz's Avatar Runninlikcraz4/10/16 11:46 am
1 emeralds 294
In advance, sorry if this is posted in the wrong area, didn't know where to put it.

I've been working on a custom map (that will soon have a demo because i love letting you guys test my maps ) and I've been using the new features of loot tables. I have gotten the loot table to work properly (it's overwritting the zombie so that it drops different stuff besides flesh) but I can't seem to find a way to make it so that it doesn't ALWAYS drop something.
As of now, any time you kill a zombie it will drop one of the items from the list, I want it to happen at random instead of dropping something every time. Thanks for any help.

Current Table
Click to reveal
{
"pools": [
{
"rolls": 1,
"bonus_rolls": {
"min": 0,
"max": 1
},
"entries": [
{
"type": "item",
"name": "minecraft:dye",
"weight": 4,
"functions": [
{
"function": "set_data",
"data": 1
},
{
"function": "set_count",
"count": {
"min":1,
"max":1
},
"conditions": [
{
"condition": "random_chance_with_looting",
"chance": 0.08,
"looting_multiplier": 0.05
}
]
}
]
},
{
"type": "item",
"name": "minecraft:emerald",
"weight": 3,
"functions": [
{
"function": "set_count",
"count": 1,
"conditions": [
{
"condition": "random_chance_with_looting",
"chance": 0.08,
"looting_multiplier": 0.02
}
]
}
]
},
{
"type": "item",
"name": "minecraft:emerald",
"weight": 2,
"functions": [
{
"function": "set_count",
"count": {
"min": 10,
"max": 10
},
"conditions": [
{
"condition": "random_chance_with_looting",
"chance": 0.01,
"looting_multiplier": 0.05
}
]
}
]
},
{
"type": "item",
"name": "minecraft:dye",
"weight": 1,
"functions": [
{
"function": "set_data",
"data": 7
},
{
"function": "set_count",
"count": 1,
"conditions": [
{
"condition": "random_chance_with_looting",
"chance": 0.008,
"looting_multiplier": 0.05
}
]
}
]
}
]
}
]
}
Posted by Runninlikcraz's Avatar
Runninlikcraz
Level 63 : High Grandmaster Hero
165

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome