[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
Location: On earth
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
 

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

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

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

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.
<gamerdude> I apologize for the above content
 

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

User avatar
Wuzzy
Member
 
Posts: 3243
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).
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

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

User avatar
Wuzzy
Member
 
Posts: 3243
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.
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

User avatar
rubenwardy
Moderator
 
Posts: 5545
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
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: 3243
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.
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 


Return to WIP Mods



Who is online

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