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

Post Reply
User avatar
MrIbby
Member
Posts: 34
Joined: Sat Apr 26, 2014 23:24
GitHub: MrIbby
Contact:

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

by MrIbby » Post

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
Spoiler
Enable these by changing the value of "minecraftaliases" from false to true in init.lua
  • ? = help
  • list = status
  • pardon = unban
  • setblock = setnode
  • stop = shutdown
  • summon = spawnentity
  • tell = msg
  • w = msg
  • tp = teleport
Note: Chat Command Aliases can be used as an alternative for aliases in order to reduce cluttering of the command list. However, each player must manually add chat command aliases.
Command alternatives:
  • seed - Press F5 (debug info)
Last edited by MrIbby on Mon Feb 13, 2017 06:05, edited 14 times in total.

Minetestforfun
Member
Posts: 940
Joined: Tue Aug 05, 2014 14:09
GitHub: MinetestForFun
IRC: MinetestForFun
In-game: MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Great job ! thank you very much for your work :)

User avatar
MrIbby
Member
Posts: 34
Joined: Sat Apr 26, 2014 23:24
GitHub: MrIbby
Contact:

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

by MrIbby » Post

Thanks!
Join the Tox revolution!
---
CC License Compatibility Chart

User avatar
cd2
Member
Posts: 562
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
In-game: cd cd2
Location: Linux
Contact:

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

by cd2 » Post

cool mod!

User avatar
programmingchicken
Member
Posts: 540
Joined: Sat Apr 18, 2015 02:20
GitHub: pchicken
IRC: chicken pchicken
Location: not here
Contact:

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

by programmingchicken » Post

worldseed? couldn't you just press f5 and look at it there?
EDIT:
Nice mod, btw. The aliases help a lot.
<gamerdude> I apologize for the above content

User avatar
MrIbby
Member
Posts: 34
Joined: Sat Apr 26, 2014 23:24
GitHub: MrIbby
Contact:

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

by MrIbby » Post

Huh, I forgot about F5. Thanks!
Join the Tox revolution!
---
CC License Compatibility Chart

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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).

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

See this to register aliases without spamming /help: viewtopic.php?t=13191
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
MrIbby
Member
Posts: 34
Joined: Sat Apr 26, 2014 23:24
GitHub: MrIbby
Contact:

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

by MrIbby » Post

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?
Join the Tox revolution!
---
CC License Compatibility Chart

User avatar
Wuzzy
Member
Posts: 4804
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy
Contact:

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

by Wuzzy » Post

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.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 22 guests