Advertisement
Guest User

Untitled

a guest
Sep 10th, 2017
570
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1.  
  2. /**
  3. * Class for the minecolonies info Poster.
  4. */
  5. public class BlockInfoPoster extends BlockWallSign
  6. {
  7. /**
  8. * This blocks name.
  9. */
  10. private static final String BLOCK_NAME = "blockInfoPoster";
  11.  
  12. /**
  13. * Constructor for the Substitution block.
  14. * sets the creative tab, as well as the resistance and the hardness.
  15. */
  16. public BlockInfoPoster()
  17. {
  18. super();
  19. initBlock();
  20. }
  21.  
  22. /**
  23. * initialize the block
  24. * sets the creative tab, as well as the resistance and the hardness.
  25. */
  26. private void initBlock()
  27. {
  28. setRegistryName(BLOCK_NAME);
  29. setUnlocalizedName(String.format("%s.%s", Constants.MOD_ID.toLowerCase(Locale.ENGLISH), BLOCK_NAME));
  30. GameRegistry.register((new ItemBlock(this)).setRegistryName(this.getRegistryName()));
  31. GameRegistry.register(this);
  32. }
  33. }
  34.  
  35.  
  36. {
  37. "credit": "Made by [email protected]",
  38. "textures": {
  39. "0": "minecolonies:blocks/info/info_poster",
  40. "1": "minecolonies:blocks/info/info_poster_wax"
  41. },
  42. "elements": [
  43. {
  44. "name": "cube",
  45. "from": [2, 0, 0],
  46. "to": [14, 8, 0],
  47. "faces": {
  48. "north": {
  49. "uv": [0, 0, 16, 10.66640625],
  50. "texture": "#0"
  51. },
  52. "east": {"uv": [0, 0, 1, 8], "texture": "#missing"},
  53. "south": {
  54. "uv": [0, 0, 12, 8],
  55. "texture": "#missing"
  56. },
  57. "west": {"uv": [0, 0, 1, 8], "texture": "#missing"},
  58. "up": {"uv": [0, 0, 12, 1], "texture": "#missing"},
  59. "down": {"uv": [0, 0, 12, 1], "texture": "#missing"}
  60. }
  61. },
  62. {
  63. "name": "cube",
  64. "from": [6.5, -1, -0.2],
  65. "to": [9.5, 2, -0.2],
  66. "faces": {
  67. "north": {"uv": [0, 0, 16, 16], "texture": "#1"},
  68. "east": {"uv": [0, 0, 0, 3], "texture": "#missing"},
  69. "south": {
  70. "uv": [0, 0, 3, 3],
  71. "texture": "#missing"
  72. },
  73. "west": {"uv": [0, 0, 0, 3], "texture": "#missing"},
  74. "up": {"uv": [0, 0, 3, 0], "texture": "#missing"},
  75. "down": {"uv": [0, 0, 3, 0], "texture": "#missing"}
  76. }
  77. },
  78. {
  79. "name": "cube",
  80. "from": [6.5, -4, 0],
  81. "to": [9.5, 1.25, 0],
  82. "faces": {
  83. "north": {
  84. "uv": [0, 10.66640625, 3, 15.91640625],
  85. "texture": "#0"
  86. },
  87. "east": {"uv": [0, 0, 1, 3], "texture": "#missing"},
  88. "south": {
  89. "uv": [0, 0, 3, 3],
  90. "texture": "#missing"
  91. },
  92. "west": {"uv": [0, 0, 1, 3], "texture": "#missing"},
  93. "up": {"uv": [0, 0, 3, 1], "texture": "#missing"},
  94. "down": {"uv": [0, 0, 3, 1], "texture": "#missing"}
  95. }
  96. }
  97. ],
  98. "groups": [0, 1, 2]
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement