Page 1 of 1

[Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jul 09, 2015 02:18
by MrIbby
This mod adds commands based on Minecraft.

Download
GitHub repository
License: CC0
Dependencies: None

New commands:
  • clear <name> or clearme - Clears player inventory
  • kill <name> or killme - Kills player
  • say <message> - Sends an announcement to all players
  • setnode <x>,<y>,<z> <nodestring> - Sets given node at specified position

+ Command aliases


Command alternatives:
  • seed - Press F5 (debug info)

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jul 09, 2015 14:16
by Minetestforfun
Great job ! thank you very much for your work :)

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Sat Jul 11, 2015 22:51
by MrIbby
Thanks!

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Sun Jul 12, 2015 06:46
by cd2
cool mod!

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Sun Jul 12, 2015 10:36
by programmingchicken
worldseed? couldn't you just press f5 and look at it there?
EDIT:
Nice mod, btw. The aliases help a lot.

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Sun Jul 12, 2015 18:46
by MrIbby
Huh, I forgot about F5. Thanks!

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jan 12, 2017 15:34
by Wuzzy
This mod seems useful, but I think the many aliases may clutter the command list. But I see you want to be like Minecraft, so whatever.

The privileges should all have give_to_singleplayer=false.
Could you also add the following commands?:

- playsound
- stopsound
- particle
- clone

Those commands will be especially useful with command blocks (from Mesecons).

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jan 12, 2017 15:38
by rubenwardy
See this to register aliases without spamming /help: viewtopic.php?t=13191

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jan 12, 2017 15:51
by Wuzzy
No, these aliases are per-player. While I like the idea, I think player-defined command aliases should be more a client thing and be part of Minetest.

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Thu Jan 12, 2017 15:54
by rubenwardy
I was linking to that as more of an instructional resource (this is how you can do aliases) rather than you should use that mod.
It's perfectly possible for mods to add aliases to all players. And yes it should be a client thing :P

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Mon Feb 13, 2017 05:03
by MrIbby
Wuzzy wrote:This mod seems useful, but I think the many aliases may clutter the command list. But I see you want to be like Minecraft, so whatever.

I agree, the aliases clutter the command list. Fortunately, I added the "minecraftaliases" variable. (See the OP for more information.)

Wuzzy wrote:The privileges should all have give_to_singleplayer=false.

Ah, you're right. I'll add that in the next update.

Wuzzy wrote:Could you also add the following commands?:

- playsound
- stopsound
- particle
- clone

Those commands will be especially useful with command blocks (from Mesecons).

I'll add those as well, except for stopsound. Do you know if the Minetest API has a table for currently playing sounds?

Re: [Mod] Commands (based on Minecraft) [commands]

PostPosted: Tue Feb 14, 2017 03:14
by Wuzzy
I don't think there's such a table. But IIRC you always get a sound handle ID returned, so you could store the sounds in a local table or something. But yeah, there's no global table.