/clearmobs command

Post Reply
revevil
Member
Posts: 49
Joined: Tue May 14, 2019 03:11

/clearmobs command

by revevil » Post

Hello,

I just want to make a friendly suggestion for a server command. I've been trying to find a way to delete mobs only with the /clearobjects command. I was going to suggest "mobs" as a command argument for /clearobjects or just a /clearmobs command. The reason is because the command also deletes my vehicles when I use it. I would just create a mod to do it but have tried to learn coding at least 10 times now. I cannot wrap my brain around it at all. I'm going to keep watching videos until I do learn though.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: /clearmobs command

by Festus1965 » Post

yes, the clearobject command is to massive
* if pipeworks = items gone
* if monster = ...
the separating wish to focus on a part of items is not bad at all.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

ChristienChapman
Member
Posts: 117
Joined: Sat May 28, 2022 00:04

Re: /clearmobs command

by ChristienChapman » Post

Yes a command to clear entities would be smart. It would also go well with a function to call in code to do the same thing easily and quickly.
God bless you.

List of releases:
Minetest Zombies Minigame - viewtopic.php?f=9&t=28442&p=412633#p412633

- > cdb_1d60e1a03f83

Astrobe
Member
Posts: 568
Joined: Sun Apr 01, 2018 10:46

Re: /clearmobs command

by Astrobe » Post

I don't think the engine distinguishes between mobs and objects (e.g. dropped items), they are both "Lua entities" to it. Something like that has to be handled by the mod managing the mobs. MobsRedo could certainly do that, for instance.

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

Re: /clearmobs command

by TenPlus1 » Post

I've added a /clear_mobs command to Mobs Redo API that only removes un-tamed mobs.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests