#Entity bossbar disappearing
1 messages · Page 1 of 1 (latest)
Do you have an example video or error in the content log?
No content log errors.
When I try to record video it doesn't disappear xD.
Thats unfortunate, can I see the code for it (maybe I find something/can replicate the error)
k
{
"format_version":"1.21.40",
"minecraft:entity": {
"description": {
"identifier":"minecraft:ender_dragon",
"spawn_category":"monster",
"is_spawnable": true,
"is_summonable": true
},
"component_groups": {
"dragon_sitting": {
"minecraft:behavior.dragonlanding": {
"priority":0
},
"minecraft:behavior.dragonflaming": {
"priority":1
},
"minecraft:behavior.dragonscanning": {
"priority":2
}
},
"dragon_flying": {
"minecraft:behavior.dragontakeoff": {
"priority":0
},
"minecraft:behavior.dragonchargeplayer": {
"priority":1
},
"minecraft:behavior.dragonstrafeplayer": {
"priority":2
},
"minecraft:behavior.dragonholdingpattern": {
"priority":3
},
"minecraft:shooter": {
"def":"minecraft:dragon_fireball"
}
},
"dragon_death": {
"minecraft:behavior.dragondeath": {
"priority":0
}
}
},
"components": {
"minecraft:is_hidden_when_invisible": {},
"minecraft:dimension_bound": {},
"minecraft:type_family": {
"family":["dragon","mob"]
},
"minecraft:health": {
"value":600,
"max":600
},
"minecraft:boss": {
"should_darken_sky": false,
"hud_range": 400
},
"minecraft:collision_box": {
"width":13,
"height":4
},
"minecraft:fire_immune":true,
"minecraft:knockback_resistance": {
"value":100,
"max":100
},
"minecraft:attack": {
"damage":3
},
"minecraft:damage_sensor": {
"triggers": {
"cause":"fall",
"deals_damage":"no"
}},
"minecraft:on_start_landing": {
"event":"minecraft:start_land",
"target":"self"
},
"minecraft:on_start_takeoff": {
"event":"minecraft:start_fly",
"target":"self"
},
"minecraft:on_death": {
"event":"minecraft:start_death",
"target":"self"
},
"minecraft:flying_speed": {
"value": 0.6
},
"minecraft:movement": {
"value":0.3
},
"minecraft:persistent": {},```
"minecraft:tick_world": {
"never_despawn": true,
"radius": 8
},
"minecraft:physics": {
"has_gravity":false,
"has_collision":true
}, "minecraft:game_event_movement_tracking": {
"emit_flap":true
}
},
"events": {
"minecraft:entity_spawned": {
"add": {
"component_groups":["dragon_flying"]
}
},
"minecraft:start_land": {
"remove": {
"component_groups":["dragon_flying"]
},
"add": {
"component_groups":["dragon_sitting"]
},
"queue_command": {
"command": [
"scriptevent agg:dragon 2",
"tag @s add \"land\u0001\""
]
}
},
"minecraft:start_fly": {
"remove": {
"component_groups":["dragon_sitting"]
},
"add": {
"component_groups":["dragon_flying"]
},
"queue_command": {
"command": [
"scriptevent agg:dragon 0",
"tag @s remove \"land\u0001\""
]
}
},
"minecraft:start_death": {
"remove": {
"component_groups":["dragon_sitting","dragon_flying"]
},
"add": {
"component_groups":["dragon_death"]
},
"queue_command": {
"command": "scriptevent agg:dragon 1"
}
}
}
}
}```
the scriptevent commands aren't problematic
I tested by disabling them earlier
I'll load it up in a test world later on but did you try adding a name in the the boss component? (not sure if that is needed ...) https://learn.microsoft.com/en-us/minecraft/creator/reference/content/entityreference/examples/entitycomponents/minecraftcomponent_boss?view=minecraft-bedrock-stable
I didn't have the name thing.
It happens when the dragon gets too far.
Though the en_US.lang from RP does give the bossbar a name. Vanilla dragon didn't have name.
@desert field have you found a solution for this problem?
Nope.
I just increased Simulation and Render Distance though
Interesting. It looks like the range property is not working right, since no matter how big is the number, the bar dissappears at the same distancie every time. And it stays hidden, even if I go back to the entity...