mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-13 16:56:49 +00:00
![SquidDev](/assets/img/avatar_default.png)
- textures/{block,item}s -> textures/{block,item} - assets/*/{advancements,lua,recipes} -> data/*/...
16 lines
616 B
Plaintext
16 lines
616 B
Plaintext
Functions in the commands API:
|
|
commands.exec( command )
|
|
commands.execAsync( command )
|
|
commands.list()
|
|
commands.getBlockPosition()
|
|
commands.getBlockInfo( x, y, z )
|
|
commands.getBlockInfos( minx, miny, minz, maxx, maxy, maxz )
|
|
|
|
The commands API can also be used to invoke commands directly, like so:
|
|
commands.say( "Hello World" )
|
|
commands.give( "dan200", "minecraft:diamond", 64 )
|
|
This works with any command. Use "commands.async" instead of "commands" to execute asynchronously.
|
|
|
|
The commands API is only available on Command Computers.
|
|
Visit http://minecraft.gamepedia.com/Commands for documentation on all commands.
|