Started by
Snoopysabbr
on
Topic category: Help with Minecraft modding (Java Edition)
im trying to make a procedure where basically: when this modded effect expires, detect which what entity had it, and if it is a player kill them and spawn thing, if it is a zombie/villager/pillager etc. de-spawn them and spawn thing, and if other just kill them. ive been trying for a while to figure out how i would do this but im having trouble finding the procedure block id need.
any help is greatly appreciated, even a very minor suggestion or advice
Go to your effect triggers: when effect expires.
For code there's a block in the logic tab wich says: "Is entity of (sub)type= "
If the type is player or server player
-execute as entity [/kill @s]
Else
Despawn entity
oh thank you!