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

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

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

by MrIbby » Thu Jul 09, 2015 02:18

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)
Last edited by MrIbby on Mon Feb 13, 2017 06:05, edited 14 times in total.
 

User avatar
Minetestforfun
Member
 
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun

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

by Minetestforfun » Thu Jul 09, 2015 14:16

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

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

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

by MrIbby » Sat Jul 11, 2015 22:51

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

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

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

by cd2 » Sun Jul 12, 2015 06:46

cool mod!
 

User avatar
programmingchicken
Member
 
Posts: 537
Joined: Sat Apr 18, 2015 02:20
GitHub: ProgrammingChicken
IRC: gamer chicken
In-game: gamerdude

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

by programmingchicken » Sun Jul 12, 2015 10:36

worldseed? couldn't you just press f5 and look at it there?
EDIT:
Nice mod, btw. The aliases help a lot.
I'm bold. I'm sarcastic. I'm PChicken.
 

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

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

by MrIbby » Sun Jul 12, 2015 18:46

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

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

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

by Wuzzy » Thu Jan 12, 2017 15:34

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).
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Thu Jan 12, 2017 15:38

See this to register aliases without spamming /help: viewtopic.php?t=13191
 

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

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

by Wuzzy » Thu Jan 12, 2017 15:51

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.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Thu Jan 12, 2017 15:54

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
 

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

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

by MrIbby » Mon Feb 13, 2017 05:03

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: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

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

by Wuzzy » Tue Feb 14, 2017 03:14

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.
I'm creating MineClone 2, a Minecraft clone for Minetest.
I made the Help modpack, adding in-game help to Minetest.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 40 guests

cron