commands dirs

superdude
New member
 
Posts: 9
Joined: Mon Jul 06, 2015 21:40
In-game: aslar

commands dirs

by superdude » Mon Nov 16, 2015 00:03

were is the code directory for default and wiki commands http://wiki.minetest.com/wiki/Server_commands
 

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

Re: commands dirs

by rubenwardy » Mon Nov 16, 2015 00:12

Where are they defined? The ones that are part of the engine, /privs /giveme /grant etc, are here: https://github.com/minetest/minetest/bl ... ds.lua#L78

Mods can also define chat commands, subgames can too. They will be in a .lua file - search for "minetest.register_chatcommand"
 

superdude
New member
 
Posts: 9
Joined: Mon Jul 06, 2015 21:40
In-game: aslar

Re: commands dirs

by superdude » Mon Nov 16, 2015 00:18

thx a lot p.s. your my modding hero :)
 

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

Re: commands dirs

by rubenwardy » Mon Nov 16, 2015 00:22

I wrote a chapter on defining chat commands in my online book (free), if that's helpful to you: http://rubenwardy.com/minetest_modding_ ... t-commands
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron