Add a new "destroyed_by_item" condition to loot_table so you can set one item or more to custom blocks drop an item only when it is destroyed by the defined item or items.
Make it this way for the block to drop an item only when it is destroyed by a single item:
"conditions": [
{
"condition": "destroyed_by_item",
"set_item": {
"item": "item:name"
}
}
]
Make it this way so that you can define multiple items for the block drop an item when it is destroyed by any of the defined items:
"conditions": [
{
"condition": "destroyed_by_item",
"set_item": [
{
"item": "item:name_0"
},
{
"item": "item:name_1"
}
]
}
]
You can do as you see fit. These are just a few tips on what this new loot_table condition would look like!
I as an Add-ons creator ask you to look into this in a future beta. This would be very useful for making ore drop an item when destroyed only by a pickaxe such as diamond ore that can only drop a diamond when destroyed by an iron or diamond pickaxe.
0 Comments
Please sign in to leave a comment.
Post a new comment: