1

Loot table not working with tool condition

yoda8579's Avatar yoda85797/11/21 1:54 pm
7/12/2021 1:23 am
HoboMaggot's Avatar HoboMaggot
Hello,

I am trying to make an addon with my son for Bedrock (PE) and we are struggling to get the loot table working correctly for a custom ore we made. The loot table we have referenced will consistently drop the correct loot (purple ingot) but it does so regardless of whether or not someone is mining with their hand or any tool whatsoever. We want it to only drop when a diamond pickaxe is used. Can someone help to tell us where we are going wrong. Note we have tried all of the online loot table generators and nothing is working!

Thanks!

{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"item": "minecraft:diamond_pickaxe"
}
}
],
"name": "pa:Purple_ingot"

}
]
}
]
}
Posted by yoda8579's Avatar
yoda8579
Level 1 : New Miner
0

Create an account or sign in to comment.

1

1
07/12/2021 1:23 am
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
If you're just trying to get this specific loot table w/ the purple ingot. Splitting the conditions from the entries would allow the game to only access the loot table after the condition has been reached
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "pa:Purple_ingot"
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"item":"minecraft:diamond_pickaxe"
]
}
}
]
}
]
}
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome