Fixed size persistence over death

Sizes were getting resetted when dying. Used "entity_action_respawned" to reapply it.
main
Pandro 1 day ago
parent dd6b9c4311
commit 3b19fcfe56
Signed by: pandro
SSH Key Fingerprint: SHA256:iBUZSuDxqYr4hYpe9U3BA9NJmXKpbGt4H0S8hUwIbrA

@ -161,7 +161,7 @@
"condition": {
"type": "origins:health",
"comparison": "<",
"compare_to": 60
"compare_to": 40
},
"if_action": {"type": "origins:and",
"actions": [{

@ -23,6 +23,19 @@
}
]
},
"entity_action_respawned": {
"type": "origins:and",
"actions": [
{
"type": "origins:execute_command",
"command": "scale set pehkui:height 0.75 @s"
},
{
"type": "origins:execute_command",
"command": "scale set pehkui:width 0.75 @s"
}
]
},
"entity_action_lost": {
"type": "origins:execute_command",
"command": "scale reset @s"

@ -19,6 +19,15 @@
}
]
},
"entity_action_respawned": {
"type": "origins:and",
"actions": [
{
"type": "origins:execute_command",
"command": "scale set pehkui:hitbox_width 2.0 @s"
}
]
},
"entity_action_lost": {
"type": "origins:execute_command",
"command": "scale reset @s"

Loading…
Cancel
Save