minepybs package

Submodules

minepybs.buildings module

class minepybs.buildings.House(template_name='house.yml')[source]

Bases: minepybs.buildings.TemplateBuilding

A simple 4x4 house

class minepybs.buildings.TemplateBuilding(template_name)[source]

Bases: object

Main class that represents a template for any building using an yaml file.

TEMPLATES_DIR = '/var/build/user_builds/minecraft-pybuildings/checkouts/latest/minepybs/templates'
get_block(x=0, y=0, z=0)[source]

Read the information from the block X, Y, Z Where:

  • X: are the lines in the yaml file.
  • Y: the colums in the yaml file.
  • Z: each entry in the yaml file.

If the information in this ‘position’ is a string, then will return the int that represents this string (the ID of the block)

if is a dictionary, then will try to retrieve the datas:

  • id: the block’s id;
  • n: the number of times this block is repeated in this line;
  • pivot: integer that indicates if this position should be marked.

this can be used to mark places where you want to place other sub-structures inside this structure when rendering.

load()[source]

Loads the given template building into a dict that represents it.

minepybs.minepybs module

Module contents