Module:Command/Syntax: Difference between revisions

No edit summary
m Update function cmd syntax
Line 22: Line 22:
execute = { "<''entity''>", "<''x''>", "<''y''>", "<''z''>", "[<''command''>|detect]", { "<''x2''>", "<''y2''>", "<''z2''>", "<''block''>", "<''command''>" } },
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''>" } } },
fill = { "<''x1''>", "<''y1''>", "<''z1''>", "<''x2''>", "<''y2''>", "<''z2''>", "<''tileName''>", { "<''dataValue''>", "<''oldBlockHandling'':[destroy|hollow|keep|outline|replace]>", "[<''dataTag''>|<''replaceTileName''>]", { "<''replaceDataValue''>" } } },
['function'] = { "<''namespace:path/to/function/file''>", { "<if|unless>", "<''selector''>" } },
['function'] = { "<''namespace:path/to/function/file''>" },
gamemode = { "<''mode'':" .. '[<abbr title="Survival">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Adventure">2</abbr>|<abbr title="Spectator">3</abbr>]>', { "<''player''>" } },
gamemode = { "<''mode'':" .. '[<abbr title="Survival">0</abbr>|<abbr title="Creative">1</abbr>|<abbr title="Adventure">2</abbr>|<abbr title="Spectator">3</abbr>]>', { "<''player''>" } },
gamerule = { "<''rule name''>", { "<''value'':[true|false|<''number''>]>" } },
gamerule = { "<''rule name''>", { "<''value'':[true|false|<''number''>]>" } },