1

1.9 Loot Tables help?

Runninlikcraz's Avatar Runninlikcraz4/10/16 7:59 pm
1 emeralds 340 4
4/11/2016 3:39 pm
diablox234's Avatar diablox234
Hey, I'm making a map and it involves loot tables. I have the table set up but the problem is it drops one of the items from the list every time you kill the mob with the loot table. I want it to be either one of the items or nothing and getting an item is a random chance. Thanks for any help!

Loot Table code:
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.

4

1
04/11/2016 2:27 pm
Level 44 : Master Architect
tobbestark
tobbestark's Avatar
Loot tables are cool
1
04/11/2016 2:32 pm
Level 1 : New Network
Nially
Nially's Avatar
Your cool
1
04/11/2016 3:39 pm
Level 1 : New Miner
diablox234
diablox234's Avatar
you're all cool
1
04/11/2016 2:19 pm
Level 1 : New Network
Nially
Nially's Avatar
Ok, so all you need to do is change the chances to 0.5<=>0.9 all this will do is change the chances slightly higher because since the update what happened is (From what I am being told) To save memory in function they changed it to one decimal place instead of the 3/4 you are trying to change it too. If not you can create another map In survival and find the loot tables there. Edit the values and Tah-Dah!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome