Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. assets/flansmod/models/block/modern.json
  2.  
  3. {
  4. "parent": "block/cube",
  5. "textures":
  6. {
  7. "particle": "flansmod:blocks/ModernBoxSide",
  8. "down": "flansmod:blocks/boxBottom",
  9. "up": "flansmod:blocks/ModernBoxTop",
  10. "north": "flansmod:blocks/ModernBoxSide",
  11. "east": "flansmod:blocks/ModernBoxSide",
  12. "south": "flansmod:blocks/ModernBoxSide",
  13. "west": "flansmod:blocks/ModernBoxSide"
  14. }
  15. }
  16.  
  17. assets/flansmod/blockstates/modern.json
  18.  
  19. { "variants": { "normal": { "model": "flansmod:modern" } } }
  20.  
  21. assets/flansmod/models/item/modern.json
  22.  
  23.  
  24. { "parent": "flansmod:block/modern", "display": { "thirdperson": { "rotation": [ 10, -45, 170 ], "translation": [ 0, 1.5, -2.75 ], "scale": [ 0.375, 0.375, 0.375 ] } } }
  25.  
  26. In BlockGunBox.java
  27.  
  28. GameRegistry.registerBlock(this, "modern");
  29.  
  30. In ClientProxy.java
  31.  
  32. Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(modern.item, 0, new ModelResourceLocation("flansmod:modern", "inventory"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement