Started by
EliteAspect23
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I am currently making a mob that will give you diamonds, say something in chat, then despawn. However, the mob disappears before it can do any of those things. Is there a way to stagger events or add a timer into the procedure?
Check this tutorial: https://www.youtube.com/watch?v=VXAPH0g9A00&t=0s&index=3&list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
Duplicate (amongst many others): https://mcreator.net/tracker/issue/43569
The tutorial is for blocks, not mobs
A very similar principle applies to mobs. Just use mob tick update to increase counter and use entity NBT variables to store counter value.