Skip to content

Commit

Permalink
Merge remote-tracking branch 'dbergl/1.10-blocks'
Browse files Browse the repository at this point in the history
  • Loading branch information
agrif committed Jun 11, 2016
2 parents 7bbc3bd + 6256c27 commit 24e9f9e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ python:
- "2.7"
# - "3.2"
env:
- MC_VERSION=1.9
- MC_VERSION=1.10
before_install:
- wget https://raw.githubusercontent.com/python-pillow/Pillow/master/libImaging/Imaging.h
- wget https://raw.githubusercontent.com/python-pillow/Pillow/master/libImaging/ImPlatform.h
Expand Down
4 changes: 4 additions & 0 deletions overviewer_core/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@
173: 'Block of Coal',
174: 'Packed Ice',
175: 'Large Flowers',
213: 'Magma Block',
214: 'Nether Wart Block',
215: 'Red Nether Brick',
216: 'Bone Block',
256: 'Iron Shovel',
257: 'Iron Pickaxe',
258: 'Iron Axe',
Expand Down
32 changes: 32 additions & 0 deletions overviewer_core/textures.py
Original file line number Diff line number Diff line change
Expand Up @@ -4476,6 +4476,7 @@ def purpur_pillar(self, blockid, data):
elif pillar_orientation == 4: # east-west orientation
return self.build_full_block(side.rotate(90), None, None, top, side.rotate(90))
elif pillar_orientation == 8: # north-south orientation

return self.build_full_block(side, None, None, side.rotate(270), top)

# end brick
Expand All @@ -4487,6 +4488,37 @@ def frosted_ice(self, blockid, data):
img = self.load_image_texture("assets/minecraft/textures/blocks/frosted_ice_%d.png" % data)
return self.build_block(img, img)

# magma block
block(blockid=213, top_image="assets/minecraft/textures/blocks/magma.png")

# nether wart block
block(blockid=214, top_image="assets/minecraft/textures/blocks/nether_wart_block.png")

# red nether brick
block(blockid=215, top_image="assets/minecraft/textures/blocks/red_nether_brick.png")

@material(blockid=216, data=range(12), solid=True)
def boneblock(self, blockid, data):
# extract orientation
boneblock_orientation = data & 12
if self.rotation == 1:
if boneblock_orientation == 4: boneblock_orientation = 8
elif boneblock_orientation == 8: boneblock_orientation = 4
elif self.rotation == 3:
if boneblock_orientation == 4: boneblock_orientation = 8
elif boneblock_orientation == 8: boneblock_orientation = 4

top = self.load_image_texture("assets/minecraft/textures/blocks/bone_block_top.png")
side = self.load_image_texture("assets/minecraft/textures/blocks/bone_block_side.png")

# choose orientation and paste textures
if boneblock_orientation == 0:
return self.build_block(top, side)
elif boneblock_orientation == 4: # east-west orientation
return self.build_full_block(side.rotate(90), None, None, top, side.rotate(90))
elif boneblock_orientation == 8: # north-south orientation
return self.build_full_block(side, None, None, side.rotate(270), top)

# structure block
@material(blockid=255, data=range(4), solid=True)
def structure_block(self, blockid, data):
Expand Down

0 comments on commit 24e9f9e

Please sign in to comment.