Hello. I want to check the name of an entity that was killed to regenerate it. Just like.. MMORPGs.
I have a foundation to do it, but it doesn't check the name of the killed entity, then i can't do nothing..
That's the skript:
I know that this doesn't make an entity respawn, but i know how to do it, so i don't post it here to ask help. I just need an help to check the name of the died entity. Just like.. I don't know. I tried all the possibilities in my knowledge of skript. And sorry for my bad english.. I'm italian.
I have a foundation to do it, but it doesn't check the name of the killed entity, then i can't do nothing..
That's the skript:
code_language.skript:
on death:
if victim is a pig named "&7Pig [Lvl.&a1&7]":
broadcast "A pig just died.."
I know that this doesn't make an entity respawn, but i know how to do it, so i don't post it here to ask help. I just need an help to check the name of the died entity. Just like.. I don't know. I tried all the possibilities in my knowledge of skript. And sorry for my bad english.. I'm italian.