Module:Command/Syntax: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Add setblock
m adding more commands. First test to make sure I understand the syntax
Line 1: Line 1:
return {
return {
achievement = { "[<''give''>|<''take''>]", "[<''stat_name''>|*]", { "<''player''>" } },
['?'] = 'help',
['?'] = 'help',
help = { { "[<''page''>|<''command''>]" } },
help = { { "[<''page''>|<''command''>]" } },

Revision as of 15:29, 8 December 2014

Documentation for this module may be created at Module:Command/Syntax/doc

return {
	achievement = { "[<''give''>|<''take''>]", "[<''stat_name''>|*]", { "<''player''>" } },
	['?'] = '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''>" },
}