Minecraft version: 1.8
Hey guys, I have problem with cancel death event.
Everything's okay when player kills player: death is being prevented and all's good.
But when damage cause is i.e. fall or tnt explode, player dies anyway and gets a Death Screen and after respawn his gamemode is spectator
How do I fix it?
Hey guys, I have problem with cancel death event.
code_language.skript:
on damage of player:
if damage > victim's health:
set victim's gamemode to spectator
#also tried:
if (victim's health - damage) < 0.1:
#do stuff
Everything's okay when player kills player: death is being prevented and all's good.
But when damage cause is i.e. fall or tnt explode, player dies anyway and gets a Death Screen and after respawn his gamemode is spectator
How do I fix it?