
scarpet event __on_player_takes_damage no longer works
WerLunar opened this issue ยท 4 comments
carpet version 1.4.161
__on_player_takes_damage event will not be triggered when player takes damage.
- What Minecraft version are you running? What other mods do you have installed?
- How are you taking damage?
- Does your "damage taken" statistic increase upon taking damage?
- Is the
__on_player_takes_damage
event mapped to call a function with user-visible effects?
- What Minecraft version are you running? What other mods do you have installed?
- How are you taking damage?
- Does your "damage taken" statistic increase upon taking damage?
- Is the
__on_player_takes_damage
event mapped to call a function with user-visible effects?
Thanks for your quick reply, I clicked create before I had done writting :')
- 1.21.4
- fall damage, damage potion, bee attack. Those are the tested.
- Yes the statistic increases.
- Yes, I tested with a script like this:
__on_player_takes_damage(player, amount, source, source_entity) -> (
print('damaged');
);
Do you instantly die upon taking any damage after running this script?
__on_player_takes_damage(player, amount, source, source_entity) -> modify(player, 'health', 0);
Do you instantly die upon taking any damage after running this script?
__on_player_takes_damage(player, amount, source, source_entity) -> modify(player, 'health', 0);
Nope, the player still takes normal damage.
Also I forgot to mention that I'm testing only with carpet mod installed.
I dug into this issue because the carried_totem.sc scarpet script stopped working after updating to 1.21.4 from 1.20.2, and narrowed down to this potential issue.