Entity Documentation - minecraft:is_ignited
minecraft:is_ignited
sets that the entity is currently on fire.
Important
minecraft:is_ignited
is a Boolean that is used to set the value for use in query functions like Molang and Filters. In order for the entity to have the desired affect, it will need to be paired with extra functionality.
The examples below will showcase both the property and how it works to create the desired effect on the entity.
Example
Plain
"minecraft:is_ignited":{
}
With Functionality
// Set up ability to trigger an event when damaged by fire
"minecraft:damage_sensor": {
"triggers": {
"on_damage": {
"filters": { "test": "is_family", "subject": "other", "value": "fire"
},
"event": "minecraft:im_on_fire"
},
"deals_damage": false
}
}
// Set up custom event to tag that it is now ignited
"minecraft:im_on_fire":{
"minecraft:is_ignited":{
}
}
Note
If the Entity will have the ability to toggle between the two states, you can define the property in a Component Group and use the add
and remove
capabilities to act as a toggle based on Events.
Vanilla entities examples
tnt_minecart
"minecraft:is_ignited":{
}
Vanilla entities using minecraft:is_ignited
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for