so when player kills an entity, it will return the type of the entity, however entity that have spaces in their type name will display with the spaces like "iron golem", "ender dragon", etc. so instead, i want it to output them with underscores like "iron_golem", "ender_dragon", etc.
anyone have any idea on how to do that?
[doublepost=1679136253,1679135823][/doublepost]nevermind i found the solution
im gonna post it here if anyone also have that problem
anyone have any idea on how to do that?
Code:
on death:
if attacker is player:
send "%victim's type%" to attacker
#when I kill an iron golem, it sends me "iron golem" instead of "iron_golem"
im gonna post it here if anyone also have that problem
Code:
on death:
if attacker is player:
set {_type} to "%victim's type%"
replace all " " with "_" in {_type}
send "%{_type}%" to attacker