2

Loot_tables problem (help me pls T-T)help

vb1dra6847's Avatar vb1dra68472/17/24 2:18 pm
2 emeralds 79
I need a loot_table, that will drop oak_log if block was broken with axe or was exploded, and drop stone if block was broken without axe.
I tried somethink like that, but it`s not working right:
{ "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:oak_log", "conditions": [ { "condition": "all_of", "terms": [ { "condition": "entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "tag": "main:log_drop_axe" } } } }, { "condition": "survives_explosion" } ] } ] } ] }, { "rolls": 1, "entries": [ { "type": "minecraft:loot_table", "name": "main:gameplay/oak_log_1", "conditions": [ { "condition": "inverted", "term": { "condition": "all_of", "terms": [ { "condition": "entity_properties", "entity": "this", "predicate": { "equipment": { "mainhand": { "tag": "main:log_drop_axe" } } } }, { "condition": "survives_explosion" } ] } } ] } ] } ]}
it drop stone when block broken without axe, and drop oak_log when block broken with axe, BUT drop stone after explosion!
idk how fix that, plese, help me someone x-x
Posted by vb1dra6847's Avatar
vb1dra6847
Level 20 : Expert Caveman
3

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome