0

Add terracotta and concrete blocks

Fixes #1367
This commit is contained in:
Nicolas F
2017-03-09 16:50:45 +01:00
parent 2add96132c
commit 13d5fb7642

View File

@@ -4637,3 +4637,16 @@ def crops(self, blockid, data):
alpha_over(img, crop2, (6,3), crop2)
alpha_over(img, crop3, (6,3), crop3)
return img
# Concrete
@material(blockid=251, data=range(16), solid=True)
def concrete(self, blockid, data):
texture = self.load_image_texture("assets/minecraft/textures/blocks/concrete_%s.png" % color_map[data])
return self.build_block(texture, texture)
# Glazed Terracotta
@material(blockid=range(235,251), solid=True, nodata=True)
def glazed_terracotta(self, blockid, data):
texture = self.load_image_texture("assets/minecraft/textures/blocks/glazed_terracotta_%s.png" % color_map[blockid - 235])
return self.build_block(texture, texture)