Difference between revisions of "WorldAPI"

From wiki.phychi.com
Jump to: navigation, search
(Created page with "The WorldAPI allows you, a programmer, to manipulate the behavior of the world, and its contents: players, items, entities, machines, the weather, the sky, dungeons, and monst...")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:API]]
 +
[[Category:World]]
 
The WorldAPI allows you, a programmer, to manipulate the behavior of the world, and its contents: players, items, entities, machines, the weather, the sky, dungeons, and monsters,...
 
The WorldAPI allows you, a programmer, to manipulate the behavior of the world, and its contents: players, items, entities, machines, the weather, the sky, dungeons, and monsters,...
  
== [[BlockAPI|Block]] Access ==
+
== Block Access ==
 +
See also: [[BlockAPI]]
 +
{| class="wikitable" border="1"
 +
|-
 +
! Function
 +
! Meaning
 +
! Similar
 +
|-
 +
| getBlockByID(id)
 +
| get the basic type of a block
 +
| blockByID[id*100], blockByName[name]
 +
|-
 +
| world.getBlockAt(x, y, z [, unimportant? [, level]])
 +
| get a block from the world, can be a number or an object
 +
| world.getColorAt(x, y, z)
 +
|-
 +
| world.setBlockAt(x, y, z, block [, unimportant?])
 +
| set a block in the world
 +
| world.sba(chunk, chunkchen, x, y, z, block), world.setBlockUnsecure(x, y, z, block)
 +
|}
 +
== Entity Access ==
 +
== Structure Generation ==

Latest revision as of 09:52, 18 January 2017

The WorldAPI allows you, a programmer, to manipulate the behavior of the world, and its contents: players, items, entities, machines, the weather, the sky, dungeons, and monsters,...

Block Access

See also: BlockAPI

Function Meaning Similar
getBlockByID(id) get the basic type of a block blockByID[id*100], blockByName[name]
world.getBlockAt(x, y, z [, unimportant? [, level]]) get a block from the world, can be a number or an object world.getColorAt(x, y, z)
world.setBlockAt(x, y, z, block [, unimportant?]) set a block in the world world.sba(chunk, chunkchen, x, y, z, block), world.setBlockUnsecure(x, y, z, block)

Entity Access

Structure Generation