class ModelCow(ModelQuadruped): id = "Cow" modelTexture = "assets/minecraft/textures/entity/cow/cow.png" def __init__(self): super(ModelCow, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-4.0, -4.0, -6.0, 8, 8, 6, 0.0) self.head.setCenterPoint(0.0, 4.0, -8.0) self.head.setTextureOffset(22, 0) self.head.addBox(-5.0, -5.0, -4.0, 1, 3, 1, 0.0) self.head.setTextureOffset(22, 0) self.head.addBox(4.0, -5.0, -4.0, 1, 3, 1, 0.0) self.body = ModelRenderer(self, 18, 4) self.body.addBox(-6.0, -10.0, -7.0, 12, 18, 10, 0.0) self.body.setCenterPoint(0.0, 5.0, 2.0) self.body.setTextureOffset(52, 0) self.body.addBox(-2.0, 2.0, -8.0, 4, 6, 1) self.body.setRotation(math.pi / 2., 0, 0) self.leg1.cx -= 1 self.leg2.cx += 1 self.leg3.cx -= 1 self.leg4.cx += 1 self.leg3.cz -= 1 self.leg4.cz += 1
class ModelSheepWool(ModelQuadruped): id = "MCEDIT_SheepWool" # eww modelTexture = "assets/minecraft/textures/entity/sheep/sheep_fur.png" def __init__(self): super(ModelSheepWool, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-3.0, -4.0, -4.0, 6, 6, 6, 0.6) self.head.setCenterPoint(0.0, 6.0, -8.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-4.0, -10.0, -7.0, 8, 16, 6, 1.75) self.body.setCenterPoint(0.0, 5.0, 2.0) legExpand = 0.5 self.leg1 = ModelRenderer(self, 0, 16) self.leg1.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg1.setCenterPoint(-3.0, 12.0, 7.0) self.leg2 = ModelRenderer(self, 0, 16) self.leg2.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg2.setCenterPoint(3.0, 12.0, 7.0) self.leg3 = ModelRenderer(self, 0, 16) self.leg3.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg3.setCenterPoint(-3.0, 12.0, -5.0) self.leg4 = ModelRenderer(self, 0, 16) self.leg4.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg4.setCenterPoint(3.0, 12.0, -5.0) self.body.setRotation(math.pi / 2., 0, 0)
class ModelSheepWool(ModelQuadruped): id = "MCEDIT_SheepWool" # eww modelTexture = "assets/minecraft/textures/entity/sheep/sheep_fur.png" def __init__(self): super(ModelSheepWool, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-3.0, -4.0, -4.0, 6, 6, 6, 0.6) self.head.setCenterPoint(0.0, 6.0, -8.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-4.0, -10.0, -7.0, 8, 16, 6, 1.75) self.body.setCenterPoint(0.0, 5.0, 2.0) legExpand = 0.5 self.leg1 = ModelRenderer(self, 0, 16) self.leg1.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg1.setCenterPoint(-3.0, 12.0, 7.0) self.leg2 = ModelRenderer(self, 0, 16) self.leg2.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg2.setCenterPoint(3.0, 12.0, 7.0) self.leg3 = ModelRenderer(self, 0, 16) self.leg3.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg3.setCenterPoint(-3.0, 12.0, -5.0) self.leg4 = ModelRenderer(self, 0, 16) self.leg4.addBox(-2.0, 0.0, -2.0, 4, 6, 4, legExpand) self.leg4.setCenterPoint(3.0, 12.0, -5.0) self.body.setRotation(math.pi/2., 0, 0)
class ModelCow(ModelQuadruped): id = "Cow" modelTexture = "assets/minecraft/textures/entity/cow/cow.png" def __init__(self): super(ModelCow, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-4.0, -4.0, -6.0, 8, 8, 6, 0.0) self.head.setCenterPoint(0.0, 4.0, -8.0) self.head.setTextureOffset(22, 0) self.head.addBox(-5.0, -5.0, -4.0, 1, 3, 1, 0.0) self.head.setTextureOffset(22, 0) self.head.addBox(4.0, -5.0, -4.0, 1, 3, 1, 0.0) self.body = ModelRenderer(self, 18, 4) self.body.addBox(-6.0, -10.0, -7.0, 12, 18, 10, 0.0) self.body.setCenterPoint(0.0, 5.0, 2.0) self.body.setTextureOffset(52, 0) self.body.addBox(-2.0, 2.0, -8.0, 4, 6, 1) self.body.setRotation(math.pi/2., 0, 0) self.leg1.cx -= 1 self.leg2.cx += 1 self.leg3.cx -= 1 self.leg4.cx += 1 self.leg3.cz -= 1 self.leg4.cz += 1
class ModelSheep(ModelQuadruped): id = "Sheep" modelTexture = "assets/minecraft/textures/entity/sheep/sheep.png" def __init__(self): super(ModelSheep, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-3.0, -4.0, -6.0, 6, 6, 8, 0.0) self.head.setCenterPoint(0.0, 6.0, -8.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-4.0, -10.0, -7.0, 8, 16, 6, 0.0) self.body.setCenterPoint(0.0, 5.0, 2.0) self.body.setRotation(math.pi / 2., 0, 0)
class ModelSheep(ModelQuadruped): id = "Sheep" modelTexture = "assets/minecraft/textures/entity/sheep/sheep.png" def __init__(self): super(ModelSheep, self).__init__(12) self.head = ModelRenderer(self, 0, 0) self.head.addBox(-3.0, -4.0, -6.0, 6, 6, 8, 0.0) self.head.setCenterPoint(0.0, 6.0, -8.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-4.0, -10.0, -7.0, 8, 16, 6, 0.0) self.body.setCenterPoint(0.0, 5.0, 2.0) self.body.setRotation(math.pi/2., 0, 0)
class ModelQuadruped(object): textureWidth = 64 textureHeight = 32 def __init__(self, height, expandOffset=0.0): self.head = ModelRenderer(self, 0, 0) self.head.addBox(-4.0, -4.0, -8.0, 8, 8, 8, expandOffset) self.head.setCenterPoint(0.0, (18 - height), -6.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-5.0, -10.0, -7.0, 10, 16, 8, expandOffset) self.body.setCenterPoint(0.0, (17 - height), 2.0) self.leg1 = ModelRenderer(self, 0, 16) self.leg1.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg1.setCenterPoint(-3.0, (24 - height), 7.0) self.leg2 = ModelRenderer(self, 0, 16) self.leg2.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg2.setCenterPoint(3.0, (24 - height), 7.0) self.leg3 = ModelRenderer(self, 0, 16) self.leg3.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg3.setCenterPoint(-3.0, (24 - height), -5.0) self.leg4 = ModelRenderer(self, 0, 16) self.leg4.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg4.setCenterPoint(3.0, (24 - height), -5.0) self.body.setRotation(math.pi / 2., 0, 0) @property def parts(self): return [ self.head, self.body, self.leg1, self.leg2, self.leg3, self.leg4, ]
class ModelQuadruped(object): textureWidth = 64 textureHeight = 32 def __init__(self, height, expandOffset=0.0): self.head = ModelRenderer(self, 0, 0) self.head.addBox(-4.0, -4.0, -8.0, 8, 8, 8, expandOffset) self.head.setCenterPoint(0.0, (18 - height), -6.0) self.body = ModelRenderer(self, 28, 8) self.body.addBox(-5.0, -10.0, -7.0, 10, 16, 8, expandOffset) self.body.setCenterPoint(0.0, (17 - height), 2.0) self.leg1 = ModelRenderer(self, 0, 16) self.leg1.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg1.setCenterPoint(-3.0, (24 - height), 7.0) self.leg2 = ModelRenderer(self, 0, 16) self.leg2.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg2.setCenterPoint(3.0, (24 - height), 7.0) self.leg3 = ModelRenderer(self, 0, 16) self.leg3.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg3.setCenterPoint(-3.0, (24 - height), -5.0) self.leg4 = ModelRenderer(self, 0, 16) self.leg4.addBox(-2.0, 0.0, -2.0, 4, height, 4, expandOffset) self.leg4.setCenterPoint(3.0, (24 - height), -5.0) self.body.setRotation(math.pi/2., 0, 0) @property def parts(self): return [ self.head, self.body, self.leg1, self.leg2, self.leg3, self.leg4, ]
class ModelSpider(object): textureWidth = 64 textureHeight = 32 id = "Spider" modelTexture = "assets/minecraft/textures/entity/spider/spider.png" def __init__(self): var1 = 0.0 var2 = 15 self.spiderHead = ModelRenderer(self, 32, 4) self.spiderHead.addBox(-4.0, -4.0, -8.0, 8, 8, 8, var1) self.spiderHead.setCenterPoint(0.0, var2, -3.0) self.spiderNeck = ModelRenderer(self, 0, 0) self.spiderNeck.addBox(-3.0, -3.0, -3.0, 6, 6, 6, var1) self.spiderNeck.setCenterPoint(0.0, var2, 0.0) self.spiderBody = ModelRenderer(self, 0, 12) self.spiderBody.addBox(-5.0, -4.0, -6.0, 10, 8, 12, var1) self.spiderBody.setCenterPoint(0.0, var2, 9.0) self.spiderLeg1 = ModelRenderer(self, 18, 0) self.spiderLeg1.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg1.setCenterPoint(-4.0, var2, 2.0) self.spiderLeg2 = ModelRenderer(self, 18, 0) self.spiderLeg2.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg2.setCenterPoint(4.0, var2, 2.0) self.spiderLeg3 = ModelRenderer(self, 18, 0) self.spiderLeg3.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg3.setCenterPoint(-4.0, var2, 1.0) self.spiderLeg4 = ModelRenderer(self, 18, 0) self.spiderLeg4.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg4.setCenterPoint(4.0, var2, 1.0) self.spiderLeg5 = ModelRenderer(self, 18, 0) self.spiderLeg5.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg5.setCenterPoint(-4.0, var2, 0.0) self.spiderLeg6 = ModelRenderer(self, 18, 0) self.spiderLeg6.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg6.setCenterPoint(4.0, var2, 0.0) self.spiderLeg7 = ModelRenderer(self, 18, 0) self.spiderLeg7.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg7.setCenterPoint(-4.0, var2, -1.0) self.spiderLeg8 = ModelRenderer(self, 18, 0) self.spiderLeg8.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg8.setCenterPoint(4.0, var2, -1.0) legYaw = 0.3926991 legPitch = math.pi / 4 self.spiderLeg1.setRotation(0, 2 * legYaw, -legPitch) self.spiderLeg2.setRotation(0, -2 * legYaw, legPitch) self.spiderLeg3.setRotation(0, legYaw, -legPitch * 3 / 4.) self.spiderLeg4.setRotation(0, -legYaw, legPitch * 3 / 4.) self.spiderLeg5.setRotation(0, -legYaw, -legPitch * 3 / 4.) self.spiderLeg6.setRotation(0, legYaw, legPitch * 3 / 4.) self.spiderLeg7.setRotation(0, -2 * legYaw, -legPitch) self.spiderLeg8.setRotation(0, 2 * legYaw, legPitch) self.parts = [ self.spiderHead, self.spiderNeck, self.spiderBody, self.spiderLeg1, self.spiderLeg2, self.spiderLeg3, self.spiderLeg4, self.spiderLeg5, self.spiderLeg6, self.spiderLeg7, self.spiderLeg8, ]
class ModelSpider(object): textureWidth = 64 textureHeight = 32 id = "Spider" modelTexture = "assets/minecraft/textures/entity/spider/spider.png" def __init__(self): var1 = 0.0 var2 = 15 self.spiderHead = ModelRenderer(self, 32, 4) self.spiderHead.addBox(-4.0, -4.0, -8.0, 8, 8, 8, var1) self.spiderHead.setCenterPoint(0.0, var2, -3.0) self.spiderNeck = ModelRenderer(self, 0, 0) self.spiderNeck.addBox(-3.0, -3.0, -3.0, 6, 6, 6, var1) self.spiderNeck.setCenterPoint(0.0, var2, 0.0) self.spiderBody = ModelRenderer(self, 0, 12) self.spiderBody.addBox(-5.0, -4.0, -6.0, 10, 8, 12, var1) self.spiderBody.setCenterPoint(0.0, var2, 9.0) self.spiderLeg1 = ModelRenderer(self, 18, 0) self.spiderLeg1.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg1.setCenterPoint(-4.0, var2, 2.0) self.spiderLeg2 = ModelRenderer(self, 18, 0) self.spiderLeg2.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg2.setCenterPoint(4.0, var2, 2.0) self.spiderLeg3 = ModelRenderer(self, 18, 0) self.spiderLeg3.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg3.setCenterPoint(-4.0, var2, 1.0) self.spiderLeg4 = ModelRenderer(self, 18, 0) self.spiderLeg4.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg4.setCenterPoint(4.0, var2, 1.0) self.spiderLeg5 = ModelRenderer(self, 18, 0) self.spiderLeg5.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg5.setCenterPoint(-4.0, var2, 0.0) self.spiderLeg6 = ModelRenderer(self, 18, 0) self.spiderLeg6.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg6.setCenterPoint(4.0, var2, 0.0) self.spiderLeg7 = ModelRenderer(self, 18, 0) self.spiderLeg7.addBox(-15.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg7.setCenterPoint(-4.0, var2, -1.0) self.spiderLeg8 = ModelRenderer(self, 18, 0) self.spiderLeg8.addBox(-1.0, -1.0, -1.0, 16, 2, 2, var1) self.spiderLeg8.setCenterPoint(4.0, var2, -1.0) legYaw = 0.3926991 legPitch = math.pi / 4 self.spiderLeg1.setRotation(0, 2*legYaw, -legPitch) self.spiderLeg2.setRotation(0, -2*legYaw, legPitch) self.spiderLeg3.setRotation(0, legYaw, -legPitch*3/4.) self.spiderLeg4.setRotation(0, -legYaw, legPitch*3/4.) self.spiderLeg5.setRotation(0, -legYaw, -legPitch*3/4.) self.spiderLeg6.setRotation(0, legYaw, legPitch*3/4.) self.spiderLeg7.setRotation(0, -2*legYaw, -legPitch) self.spiderLeg8.setRotation(0, 2*legYaw, legPitch) self.parts = [ self.spiderHead, self.spiderNeck, self.spiderBody, self.spiderLeg1, self.spiderLeg2, self.spiderLeg3, self.spiderLeg4, self.spiderLeg5, self.spiderLeg6, self.spiderLeg7, self.spiderLeg8, ]