
`apugli:edible_item` doesn't consume item if power lost
JustCyra opened this issue ยท 2 comments
If the item consumed via this power is removed in it's entity_action
it will not consume the item
Example power:
{
"type": "apugli:edible_item",
"item_condition": {
"type": "origins:ingredient",
"ingredient": {
"item": "minecraft:blaze_rod"
}
},
"food_component": {
"hunger": 0,
"saturation": 0,
"meat": false,
"always_edible": true,
"snack": false
},
"use_action": "eat",
"entity_action": {
"type": "apoli:revoke_power",
"power": "*:*",
"source": "apoli:command"
}
}
I'd guess this has to do with the action firing before the item is consumed.