Mobs Redo in-game entity reset?
- ElCeejo
- Member
- Posts: 210
- Joined: Thu Feb 28, 2019 23:29
- GitHub: ElCeejo
- In-game: ElCeejo
- Location: Your Mother's house
Mobs Redo in-game entity reset?
I honestly don't know how to put this but here we go. I'm trying to make a mob using TenPlus1's mobs api with the do_custom function and I need it to reset itself on a random interval. Almost as if you restarted the world but it only affected this one entity while still in-game. If anyone understands what I'm trying to say some help would be appreciated.
- Miniontoby
- Member
- Posts: 616
- Joined: Fri Mar 01, 2019 19:25
- GitHub: Miniontoby
- IRC: Miniontoby
- In-game: Miniontoby
- Location: The Netherlands
Re: Mobs Redo in-game entity reset?
I know that the "TNT Server" server on Minetest Reset the world every ten minutes. You can search of there is a code how the person from who has that server it has done
Re: Mobs Redo in-game entity reset?
use do_custom for the 10 minute timer then instead of resetting the mob, add a NEW mob of the same type and delete the old one, will work and be simpler to reset.
-
- Member
- Posts: 1118
- Joined: Mon Dec 29, 2014 08:07
- Location: USA
Re: Mobs Redo in-game entity reset?
You might also view the Advanced_NPC and its demo NPC mod for examples.
Who is online
Users browsing this forum: No registered users and 12 guests