Advertisement
Morok

Untitled

Jul 6th, 2015
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. # Forestry: Planks (I:planks=1380)
  2. @material(blockid=1380, data=range(16), solid=True)
  3. def forestry_planks1(self, blockid, data):
  4. if data == 0: # Larch Wood Planks
  5. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.larch.png")
  6. elif data == 1: # Teak Wood Planks
  7. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.teak.png")
  8. elif data == 2: # Acacia Wood Planks
  9. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.acacia.png")
  10. elif data == 3: # Lime Wood Planks
  11. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.lime.png")
  12. elif data == 4: # Chestnut Wood Planks
  13. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.chestnut.png")
  14. elif data == 5: # Wenge Wood Planks
  15. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.wenge.png")
  16. elif data == 6: # Baobab Wood Planks
  17. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.baobab.png")
  18. elif data == 7: # Sequoia Wood Planks
  19. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.sequoia.png")
  20. elif data == 8: # Kapok Wood Planks
  21. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.kapok.png")
  22. elif data == 9: # Ebony Wood Planks
  23. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.ebony.png")
  24. elif data == 10: # Mahogany Wood Planks
  25. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.mahogany.png")
  26. elif data == 11: # Balsa Wood Planks
  27. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.balsa.png")
  28. elif data == 12: # Willow Wood Planks
  29. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.willow.png")
  30. elif data == 13: # Walnut Wood Planks
  31. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.walnut.png")
  32. elif data == 14: # Greenheart Wood Planks
  33. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.greenheart.png")
  34. elif data == 15: # Cherry Wood Planks
  35. side = self.load_image_texture("assets/forestry/textures/blocks/wood/planks.cherry.png")
  36. return self.build_block(side, side)
  37.  
  38. # wooden planks2
  39. @material(blockid=1417, data=range(8), solid=True)
  40. def forestry_wooden_planks2(self, blockid, data):
  41. if data == 0: # mahoe
  42. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.mahoe.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.mahoe.png"))
  43. if data == 1: # poplar
  44. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.poplar.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.poplar.png"))
  45. if data == 2: # palm
  46. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.palm.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.palm.png"))
  47. if data == 3: # papaya
  48. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.papaya.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.papaya.png"))
  49. if data == 4: # pine
  50. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.pine.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.pine.png"))
  51. if data == 5: # plum
  52. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.plum.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.plum.png"))
  53. if data == 6: # maple
  54. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.maple.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.maple.png"))
  55. if data == 7: # citrus
  56. return self.build_block(self.load_image_texture("assets/forestry/textures/blocks/wood/planks.citrus.png"), self.load_image_texture("assets/forestry/textures/blocks/wood/planks.citrus.png"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement