Module:Command/Syntax: Difference between revisions
Jump to navigation
Jump to search
Use sub-tables for optional commands |
Add setblock |
||
Line 19: | Line 19: | ||
me = { "<''action''>" }, | me = { "<''action''>" }, | ||
say = { "<''message''>" }, | say = { "<''message''>" }, | ||
setblock = { "<''x''>", "<''y''>", "<''z''>", "<''tilename''>", { "<''datavalue''>", "<''oldblockHandling''>", "<''dataTag''>" } }, | |||
spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } }, | spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } }, | ||
tell = { "<''player''>", "<''message''>" }, | tell = { "<''player''>", "<''message''>" }, |
Revision as of 23:58, 10 March 2014
Documentation for this module may be created at Module:Command/Syntax/doc
return {
['?'] = 'help',
help = { { "[<''page''>|<''command''>]" } },
ban = 'kick',
kick = { "<''player''>", { "<''reason''>" } },
['ban-ip'] = 'pardon-ip',
['pardon-ip'] = { "<''ip''>" },
banlist = { { "[ips]" } },
clear = { { "<''player''>", "<''item''>", "<''data-value''>" } },
debug = { "<''operation'':[start|stop]>" },
defaultgamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>]>' },
deop = 'pardon',
op = 'pardon',
pardon = { "<''player''>" },
difficulty = { "<''difficulty'':" .. '[<abbr title="Peaceful">0</abbr>|<abbr title="Easy">1</abbr>|<abbr title="Normal">2</abbr>|<abbr title="Hard">3</abbr>]>' },
gamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>]>', { "<''player''>" } },
gamerule = { "<''rule'':[commandBlockOutput|doFireTick|doMobLoot|doMobSpawning|doTileDrops|keepInventory|mobGriefing]>", { "<''enabled'':[true|false]>" } },
give = { "<''player''>", "<''data-value''>", "<''amount''>", { "<''damage-value''>" } },
me = { "<''action''>" },
say = { "<''message''>" },
setblock = { "<''x''>", "<''y''>", "<''z''>", "<''tilename''>", { "<''datavalue''>", "<''oldblockHandling''>", "<''dataTag''>" } },
spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } },
tell = { "<''player''>", "<''message''>" },
tp = { "<''player''>", "[<''destination-player''>|<''x''> <''y''> <''z''>]" },
time = { "<''operation'':[set|add]>", "<''number''>" },
weather = { "<''option'':[clear|rain|thunder]>", "<''time''>" },
whitelist = { "<''operation'':[add <''player''>|remove <''player''>|list|on|off|reload]>" },
xp = { "<''amount''>", "<''player''>" },
}