Dispel Entity

Add a new Dispel Entity recipe

server_scripts

This is the Dispel Entity recipe that allows you to dispel a Blaze that is on fire for it to drop loot.

KeyDescription
entityThe entity that was dispelled
loot_conditionsA list of loot conditions, all loot table conditions should be eligible
loot_tableThe loot table that should produce loot after the dispel
ServerEvents.recipes(event => {
event.custom({
type: "ars_nouveau:dispel_entity",
entity: "minecraft:blaze",
id: "ars_nouveau:blaze_powder",
loot_conditions: [
{
condition: "minecraft:entity_properties",
entity: "this",
predicate: {
flags: {
is_on_fire: true
}
}
}
],
loot_table: "minecraft:entities/blaze"
});
});