Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
martinohanlon committed Jul 12, 2017
1 parent cf4071b commit 0ed4553
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 22 deletions.
53 changes: 34 additions & 19 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,42 @@ Open a terminal and run the following commands::
Code
=========================

The module is used like this, see the `documentation`_ for more ::
See the `documentation`_ for more information, but below is a summary.

from minecraftstuff import MinecraftDrawing, MinecraftShape, MinecraftTurtle
MinecraftDrawing
-------------------------

::

from minecraftstuff import MinecraftDrawing
from mcpi.minecraft import Minecraft
from mcpi import block
from time import sleep

#Connect to minecraft
mc = Minecraft.create()
# get the players position
pos = mc.player.getTilePos()


#Using the Minecraft Drawing API
mcdrawing = MinecraftDrawing(mc)
# draw a circle with a radius of 10 blocks
mcdrawing.drawCircle(pos.x, pos.y + 15, pos.z, 10, block.WOOD.id)

MinecraftShape
-------------------------

::

from minecraftstuff import MinecraftShape
from mcpi.minecraft import Minecraft
from mcpi import block
from time import sleep

#Connect to minecraft
mc = Minecraft.create()
# get the players position
pos = mc.player.getTilePos()

#Using the Minecraft Shape API
mcshape = MinecraftShape(mc, pos)
Expand All @@ -53,6 +70,19 @@ The module is used like this, see the `documentation`_ for more ::
sleep(0.5)


MinecraftTurtle
-------------------------

::

from minecraftstuff import MinecraftTurtle
from mcpi.minecraft import Minecraft

#Connect to minecraft
mc = Minecraft.create()
# get the players position
pos = mc.player.getTilePos()

#Using the Minecraft Turtle
steve = MinecraftTurtle(mc, pos)
Expand All @@ -64,21 +94,6 @@ The module is used like this, see the `documentation`_ for more ::
steve.forward(5)
steve.right(90)
steve.forward(5)

Version history
=========================

* 1.0 - added docs
* 0.10 - added Points class to simplify drawFace
* 0.9 - added MinecraftTurtle
* 0.8 - bug fixes
* 0.7 - minor changes
* 0.6 - python 3 compatibility changes
* 0.5 - replace sets.Set with set
* 0.4 - rotating shapes & code tidy up
* 0.3 - included DrawHollowSphere function
* 0.2 - extended with new drawing functions and MinecraftShapes class
* 0.1 - first beta release, MinecraftDrawing class
.. _Martin O'Hanlon: https://github.com/martinohanlon
.. _stuffaboutco.de: http://stuffaboutco.de
Expand Down
16 changes: 16 additions & 0 deletions docs/changehistory.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
=========================
Change history
=========================

* 1.0.1 - MinecraftShape performance improvement
* 1.0 - added docs
* 0.10 - added Points class to simplify drawFace
* 0.9 - added MinecraftTurtle
* 0.8 - bug fixes
* 0.7 - minor changes
* 0.6 - python 3 compatibility changes
* 0.5 - replace sets.Set with set
* 0.4 - rotating shapes & code tidy up
* 0.3 - included DrawHollowSphere function
* 0.2 - extended with new drawing functions and MinecraftShapes class
* 0.1 - first beta release, MinecraftDrawing class
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = '1.0.0'
version = '1.0.1'
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = '1.0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ Table of Contents
minecraftdrawing
minecraftshape
minecraftturtle
changehistory
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__project__ = 'minecraftstuff'
__desc__ = 'An extension library of useful stuff for Minecraft'
__version__ = '1.0.0'
__version__ = '1.0.1'
__author__ = "Martin O'Hanlon"
__author_email__ = 'martin@ohanlonweb.com'
__license__ = 'MIT'
Expand Down

0 comments on commit 0ed4553

Please sign in to comment.