Skip to content

arruda/minecraft-pybuildings

Repository files navigation

Minecraft-PyBuildings

image

image

image

image

Documentation Status

Some predefined structures using yaml and pymclevel to build them on any minecraft map.

Usage

Ex: Build a two-ways Rail System from point A to point B with a just a couple lines of code:

import mclevel from minepybs.buildings import TwoWaysRailSystem

level = mclevel.loadWorld("myworld") # X, Y and Z point_a = [100, 7, 1050] point_b = [100, 7, 1500]

rail_system = TwoWaysRailSystem(level, point_a=point_a, point_b=point_b) rail_system.generate() rail_system.save_level()

This will give a rail station in point A, and point B, and two rail ways connecting them, one for A->B, and the other for B->A. Also both rail ways are secure (closed and iluminated), powered and with view for the outside.

This is just an example, if you want to change something, you can just inherit the TwoWaysRailSystem and modify it for you case.

Install

pip install -e git+https://github.com/arruda/minecraft-pybuildings.git@master#egg=minepybs pip install -e git+https://github.com/mcedit/pymclevel.git@master#egg=pymclevel

About

Some predefined structures using yaml and pymclevel to build them on any minecraft map.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published