{
"format_version": "1.18",
"minecraft:entity": {
"description": {
"identifier": "healing:soul_campfire",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"events": {
"minecraft:entity_spawned": {
"run_command": {
"command": [
"execute @s ~~~ setblock ~~~ soul_campfire",
"effect @e[r=4] regeneration 5 0 false"
]
}
},
"give_effect": {
"run_command": {
"command": [
"effect @e[r=4] regeneration 5 0 false"
]
}
},
"despawn_event": {
"run_command": {
"command": [
"kill @e[type=healing:soul_campfire, r=0.5]"
]
}
}
},
"components": {
"minecraft:type_family": {
"family": [ "innanimate", "mob" ]
},
"minecraft:collision_box": {
"width": 0.2,
"height": 0.2
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:health": {
"value": 10,
"max": 10
},
"minecraft:damage_sensor": {
"triggers": {
"cause": "all",
"deals_damage": false
}
},
"minecraft:timer": {
"looping": true,
"randomInterval": false,
"time": 5,
"time_down_event": {
"event": "give_effect"
}
},
"minecraft:block_sensor": {
"sensor_radius": 0.5,
"on_break": [
{
"block_list": [
"minecraft:soul_campfire"
],
"on_block_broken": "despawn_event"
}
]
},
"minecraft:physics": {
"has_gravity": false
}
}
}
}
© 2023 Quttera Ltd. All rights reserved.