Started by
Dusttale Morshu
on
Topic category: Help with Minecraft modding (Java Edition)
So I kill a creature, then spawns a creature with death animation. And i don't know how to make it despawn after 1 minute. Any help, please?
Topic category: Help with Minecraft modding (Java Edition)
So I kill a creature, then spawns a creature with death animation. And i don't know how to make it despawn after 1 minute. Any help, please?
The easiest method would be to just give it an invisible potion effect, (say, Luck, with particles disabled), and then on the entity's update tick, despawn it if it no longer has that potion effect. (You could do something similar with an NBT tag, but it's the same basic idea.)
Can you show tutorial, please? Because with produces I'm kinda bad =/
...I mean, sure, but it is literally just those two steps. Here's a more detailed explanation:
Thanks, It worked . Now get ready for next forum.
Nice explanation Mindthemoods! :)
You can use this as an alternative, i might be wrong tho.
Note: Oulined block converts seconds (60) to ticks (1 second = 20 ticks)
You should put this in "On initial spawn" trigger in your living entity so countdown starts when it spawns.
I haven't noticed the topic was made month ago, im sorry for necroing this topic