Mobs Redo in-game entity reset?

Post Reply
User avatar
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?

by ElCeejo » Post

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.

User avatar
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?

by Miniontoby » Post

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
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: Mobs Redo in-game entity reset?

by TenPlus1 » Post

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.

ShadMOrdre
Member
Posts: 1118
Joined: Mon Dec 29, 2014 08:07
Location: USA

Re: Mobs Redo in-game entity reset?

by ShadMOrdre » Post

You might also view the Advanced_NPC and its demo NPC mod for examples.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests