Module:Command/Syntax: Difference between revisions
Jump to navigation
Jump to search
m adding more commands. First test to make sure I understand the syntax |
add the rest of the commands, alphabetical |
||
Line 1: | Line 1: | ||
return { | return { | ||
['?'] = 'help', | ['?'] = 'help', | ||
help = { { "[<''page''>|<''command''>]" } }, | |||
achievement = { "[give|take]", "[<''stat_name''>|*]", { "<''player''>" } }, | |||
ban = 'kick', | ban = 'kick', | ||
kick = { "<''player''>", { "<''reason''>" } }, | |||
['ban-ip'] = 'pardon-ip', | ['ban-ip'] = 'pardon-ip', | ||
['pardon-ip'] = { "<''ip''>" }, | |||
banlist = { { "[ips]" } }, | banlist = { { "[ips|players]" } }, | ||
clear = { { "<''player''>", "<''item''>", "<''data | blockdata = { "<''x''>", "<''y''>", "<''z''>", "<''dataTag''>" }, | ||
clear = { { "<''player''>", "<''item''>", "<''data''>", "<''maxCount''>", "<''dataTag''>" } }, | |||
clone = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", { "<''maskMode''>", "<''cloneMode''>", "<''TileName''>", } }, | |||
debug = { "<''operation'':[start|stop]>" }, | debug = { "<''operation'':[start|stop]>" }, | ||
defaultgamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>]>' }, | defaultgamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>|<abbr title="Spectator">3</abbr>]>' }, | ||
deop = 'pardon', | 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>]>' }, | 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''>" } }, | effect = { "<''player''>", "[clear|<''effect''>]", { "<''seconds''>", "<''amplifier''>", "<hideParticles''>" } }, | ||
gamerule = { "<''rule'' | enchant = { "<''player''>", "<''enchantment ID''>", { "<''level''>" } }, | ||
give = { "<''player''>", "<''data-value''>", "<''amount''>", { "<''damage-value''>" } }, | entitydata = { "<''entity''>", "<''dataTag''>" }, | ||
execute = { "<''entity''>", "<''x''>", "<''y''>", "<''z''>", "[<''command''>|detect]", { "<''x2''>", "<''y2''>", "<''z2''>", "<''block''>", "<''command''>" } }, | |||
fill = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", "<''tileName''>", { "<''dataValue''>", "<''oldBlockHandling'':[destroy|hollow|keep|outline|replace]>", "[<''dataTag''>|<''replaceTileName''>]", { "<''replaceDataValue''>" } } }, | |||
gamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>|<abbr title="Spectator">3</abbr>]>', { "<''player''>" } }, | |||
gamerule = { "<''rule name''>", { "<''value'':[true|false|<''number''>]>" } }, | |||
give = { "<''player''>", "<''data-value''>", "<''amount''>", { "<''damage-value''>", "<''dataTag''>" } }, | |||
kill = { { "[<''player''>|<''entity''>]" } }, | |||
me = { "<''action''>" }, | me = { "<''action''>" }, | ||
msg = w, | |||
tell = w, | |||
w = { "<''player''>", "<''message''>" }, | |||
particle = { "<''name''>", "<''x''>", "<''y''>", "<''z''>", "<''xd''>", "<''yd''>", "<''zd''>", "<''speed''>", { "<''count''>", "<''mode''>" } }, | |||
playsound = { "<''sound''>", "<''player''>", { "<''x''>", "<''y''>", "<''z''>", "<''volume''>", "<''pitch''>", "<''minimumVolume''>" } }, | |||
replaceitem = { "[block|entity]", "[<''x''> <''y''> <''z''>|<''selector''>]", "<''slot''>", "<''item''>", { "<''amount''>", "<''data''>", "<''dataTag''>" } }, | |||
say = { "<''message''>" }, | say = { "<''message''>" }, | ||
setblock = { "<''x''>", "<''y''>", "<''z''>", "<''tilename''>", { "<''datavalue''>", "<''oldblockHandling''>", "<''dataTag''>" } }, | setblock = { "<''x''>", "<''y''>", "<''z''>", "<''tilename''>", { "<''datavalue''>", "<''oldblockHandling''>", "<''dataTag''>" } }, | ||
setidletimeout = { "<''minutes until kick''>" }, | |||
setworldspawn = { { "<''x''>", "<''y''>", "<''z''>" } }, | |||
spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } }, | spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } }, | ||
spreadplayers = { "<''x''>", "<''z''>", "<''spreadDistance''>", "<''maxRange''>", "<''respectTeams'':[true|false]>", "<''players''>" }, | |||
tp = { "<''player''>", "[<''destination-player''>|<''x''> <''y''> <''z''>]" }, | stats = { "[block|entity]", "[<''x''> <''y''> <''z''>|<''selector2''>]", "[clear|set]", "<''stat''>", { "<''selector''>", "<''objective''>" } }, | ||
summon = { "<''EntityName''>", { "<''x''>", "<''y''>", "<''z''>", "<''dataTag''>" } }, | |||
weather = { "<''option'':[clear|rain|thunder]>", "<''time''>" }, | tellraw = { "<''player''>", "<''raw json message''>" }, | ||
testfor = { "<''player''>", { "<''dataTag''>" } }, | |||
testforblock = { "<''x''>", "<''y''>", "<''z''>", "<''TileName''>", { "<''dataValue''>", "<''dataTag''>" } }, | |||
testforblock2 = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", "<''x''>", "<''y''>", "<''z''>", { "<''mode''>" } }, | |||
time = { "<''operation'':[set|add|query]>", "<''value''>" }, | |||
title = { "<''player''>", "[clear|reset|subtitle <''raw json title''>|times <''fadeIn''> <''stay''> <''fadeout''>|title <''raw json title''>]" }, | |||
tp = { "<''player''>", "[<''destination-player''>|<''x''> <''y''> <''z''>]", { "<''y-rot''> <''x-rot''>" } }, | |||
trigger = { "<''objective''>", "[add|set]", "<''value''>" }, | |||
weather = { "<''option'':[clear|rain|thunder]>", { "<''time''>" } }, | |||
whitelist = { "<''operation'':[add <''player''>|remove <''player''>|list|on|off|reload]>" }, | whitelist = { "<''operation'':[add <''player''>|remove <''player''>|list|on|off|reload]>" }, | ||
worldborder = { "[add <''sizeInBlcks''>|center <''x''> <''z''>|damage amount <''damagePerBlock''>|damage buffer <''sizeInBlocks''>|get|set <''sizeInBlocks''>|warning distance <''blocks''>|warning time <''seconds''>]", { "<''timeInSeconds''>" } }, | |||
xp = { "<''amount''>", "<''player''>" }, | xp = { "<''amount''>", "<''player''>" }, | ||
} | } |
Revision as of 16:37, 8 December 2014
Documentation for this module may be created at Module:Command/Syntax/doc
return {
['?'] = 'help',
help = { { "[<''page''>|<''command''>]" } },
achievement = { "[give|take]", "[<''stat_name''>|*]", { "<''player''>" } },
ban = 'kick',
kick = { "<''player''>", { "<''reason''>" } },
['ban-ip'] = 'pardon-ip',
['pardon-ip'] = { "<''ip''>" },
banlist = { { "[ips|players]" } },
blockdata = { "<''x''>", "<''y''>", "<''z''>", "<''dataTag''>" },
clear = { { "<''player''>", "<''item''>", "<''data''>", "<''maxCount''>", "<''dataTag''>" } },
clone = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", { "<''maskMode''>", "<''cloneMode''>", "<''TileName''>", } },
debug = { "<''operation'':[start|stop]>" },
defaultgamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>|<abbr title="Spectator">3</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>]>' },
effect = { "<''player''>", "[clear|<''effect''>]", { "<''seconds''>", "<''amplifier''>", "<hideParticles''>" } },
enchant = { "<''player''>", "<''enchantment ID''>", { "<''level''>" } },
entitydata = { "<''entity''>", "<''dataTag''>" },
execute = { "<''entity''>", "<''x''>", "<''y''>", "<''z''>", "[<''command''>|detect]", { "<''x2''>", "<''y2''>", "<''z2''>", "<''block''>", "<''command''>" } },
fill = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", "<''tileName''>", { "<''dataValue''>", "<''oldBlockHandling'':[destroy|hollow|keep|outline|replace]>", "[<''dataTag''>|<''replaceTileName''>]", { "<''replaceDataValue''>" } } },
gamemode = { "<''mode'':" .. '[<abbr title="Adventure">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Survival">2</abbr>|<abbr title="Spectator">3</abbr>]>', { "<''player''>" } },
gamerule = { "<''rule name''>", { "<''value'':[true|false|<''number''>]>" } },
give = { "<''player''>", "<''data-value''>", "<''amount''>", { "<''damage-value''>", "<''dataTag''>" } },
kill = { { "[<''player''>|<''entity''>]" } },
me = { "<''action''>" },
msg = w,
tell = w,
w = { "<''player''>", "<''message''>" },
particle = { "<''name''>", "<''x''>", "<''y''>", "<''z''>", "<''xd''>", "<''yd''>", "<''zd''>", "<''speed''>", { "<''count''>", "<''mode''>" } },
playsound = { "<''sound''>", "<''player''>", { "<''x''>", "<''y''>", "<''z''>", "<''volume''>", "<''pitch''>", "<''minimumVolume''>" } },
replaceitem = { "[block|entity]", "[<''x''> <''y''> <''z''>|<''selector''>]", "<''slot''>", "<''item''>", { "<''amount''>", "<''data''>", "<''dataTag''>" } },
say = { "<''message''>" },
setblock = { "<''x''>", "<''y''>", "<''z''>", "<''tilename''>", { "<''datavalue''>", "<''oldblockHandling''>", "<''dataTag''>" } },
setidletimeout = { "<''minutes until kick''>" },
setworldspawn = { { "<''x''>", "<''y''>", "<''z''>" } },
spawnpoint = { { "<''player''>", { "<''x''>", "<''y''>", "<''z''>" } } },
spreadplayers = { "<''x''>", "<''z''>", "<''spreadDistance''>", "<''maxRange''>", "<''respectTeams'':[true|false]>", "<''players''>" },
stats = { "[block|entity]", "[<''x''> <''y''> <''z''>|<''selector2''>]", "[clear|set]", "<''stat''>", { "<''selector''>", "<''objective''>" } },
summon = { "<''EntityName''>", { "<''x''>", "<''y''>", "<''z''>", "<''dataTag''>" } },
tellraw = { "<''player''>", "<''raw json message''>" },
testfor = { "<''player''>", { "<''dataTag''>" } },
testforblock = { "<''x''>", "<''y''>", "<''z''>", "<''TileName''>", { "<''dataValue''>", "<''dataTag''>" } },
testforblock2 = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", "<''x''>", "<''y''>", "<''z''>", { "<''mode''>" } },
time = { "<''operation'':[set|add|query]>", "<''value''>" },
title = { "<''player''>", "[clear|reset|subtitle <''raw json title''>|times <''fadeIn''> <''stay''> <''fadeout''>|title <''raw json title''>]" },
tp = { "<''player''>", "[<''destination-player''>|<''x''> <''y''> <''z''>]", { "<''y-rot''> <''x-rot''>" } },
trigger = { "<''objective''>", "[add|set]", "<''value''>" },
weather = { "<''option'':[clear|rain|thunder]>", { "<''time''>" } },
whitelist = { "<''operation'':[add <''player''>|remove <''player''>|list|on|off|reload]>" },
worldborder = { "[add <''sizeInBlcks''>|center <''x''> <''z''>|damage amount <''damagePerBlock''>|damage buffer <''sizeInBlocks''>|get|set <''sizeInBlocks''>|warning distance <''blocks''>|warning time <''seconds''>]", { "<''timeInSeconds''>" } },
xp = { "<''amount''>", "<''player''>" },
}