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.
/clearmobs command
- 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
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.
* 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)
If urgend, you find me in Roblox (as CNXThomas)
-
- Member
- Posts: 117
- Joined: Sat May 28, 2022 00:04
Re: /clearmobs command
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
List of releases:
Minetest Zombies Minigame - viewtopic.php?f=9&t=28442&p=412633#p412633
- > cdb_1d60e1a03f83
Re: /clearmobs command
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.
Re: /clearmobs command
I've added a /clear_mobs command to Mobs Redo API that only removes un-tamed mobs.
Who is online
Users browsing this forum: No registered users and 3 guests