Skip to content

Latest commit

 

History

History
52 lines (27 loc) · 1.07 KB

world.rst

File metadata and controls

52 lines (27 loc) · 1.07 KB

< class World(object) >

def __init__(self, name, mcserver)

This class is accessed via getWorld(). Requires a running server.

<object> = self.api.minecraft.getWorld()
<object>.<World_method>

World is established by console when wrapper reads "preparing ...."

< class Chunk(object) >

not implemented
  • fill(self, position1, position2, tilename, damage=0, mode="destroy", data=None)

    Fill a 3D cube with a certain block.

    Args:
    position1:tuple x, y, z
    position2:tuple x, y, z
    damage:see minecraft Wiki
    mode:destroy, hollow, keep, outline
    data:see minecraft Wiki
  • getBlock(self, pos)

    not implemented

  • replace(self, position1, position2, tilename1, damage1, tilename2, damage2=0)

    Replace specified blocks within a 3D cube with another specified block.

    Args:see minecraft Wiki
  • setChunk(self, x, z, chunk)

not implemented