Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:debug [2018/03/12 11:56]
kiritow [Component: Debug]
component:debug [2018/03/12 12:23]
kiritow add maunal for new function
Line 94: Line 94:
 - `hasTileEntity(x:​number,​ y:number, z:​number):​number`  ​ - `hasTileEntity(x:​number,​ y:number, z:​number):​number`  ​
   Check whether the block at the specified coordinates has a tile entity.   Check whether the block at the specified coordinates has a tile entity.
 +- `playSoundAt(x:​number,​ y:number, z:number, sound:​string,​ range:​number)`  ​
 +  Play a sound at the specified coordinates.
 +- `getTileNBT(x:​number,​ y:number, z:​number):​table`  ​
 +  Get the NBT of the block at the specified coordinates.
 +- `setTileNBT(x:​number,​ y:number, z:number, nbt:​table):​boolean`  ​
 +  Set the NBT of the block at the specified coordinates.
 +- `getBlockState(x:​number,​ y:number, z:number[, actualState:​boolean=false])`  ​
 +  Gets the block state for the block at the specified position, optionally getting additional display related data
  
 ==== Player Object ==== ==== Player Object ====
Line 127: Line 135:
 - `clearInventory()`  ​ - `clearInventory()`  ​
   Clear the players inventory   Clear the players inventory
 +
 +==== Scoreboard Object ====
 +
 +- `addObjective(objectiveName:​string,​ objectiveCriteria:​string)`  ​
 +  Create a new objective for the scoreboard
 +- `removeObjective(objectiveName:​string)`  ​
 +  Remove an objective from the scoreboard
 +- `increasePlayerScore(playerName:​string,​ objectiveName:​string,​ score:​int)`  ​
 +  Increases the score of a player for a certain objective
 +- `decreasePlayerScore(playerName:​string,​ objectiveName:​string,​ score:​int)`  ​
 +  Decrease the score of a player for a certain objective
 +- `addPlayerToTeam(player:​string,​ team:​string):​boolean`  ​
 +  Add a player to a team
 +- `removePlayerFromTeam(player:​string,​ team:​string):​boolean`  ​
 +  Remove a player from a specific team
 +- `removePlayerFromTeams(player:​string):​boolean`  ​
 +  Remove a player from their team
 +- `addTeam(team:​string)`  ​
 +  Add a team to the scoreboard
 +- `removeTeam(teamName:​ string)`  ​
 +  Remove a team from the scoreboard
 +- `getPlayerScore(playerName:​string,​ objectiveName:​string):​int`  ​
 +  Gets the score of a player for a certain objective
 +- `setPlayerScore(playerName:​string,​ objectiveName:​string,​ score:​int)`  ​
 +  Sets the score of a player for a certain objective
 +
 ---- ----
  
 {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}} {{page>​component:​contents&​noheader&​noeditbutton&​nouser&​nofooter}}