Guest User

Untitled

a guest
Oct 30th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. CommonProxy preInit:
  2. Call this for every block:
  3. GameRegistry.register(b);
  4. ItemBlock i = new ItemBlock(b);
  5. ModelLoader.setCustomModelResourceLocation(i, 0, new ModelResourceLocation(s, "inventory"));
  6. GameRegistry.register(i.setRegistryName(b.getRegistryName()));
  7.  
  8. ClientProxy init:
  9. Call this for every block:
  10. Minecraft.getMinecraft().getRenderItem().getItemModelMesher()
  11. .register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("TestMod:" + block.getUnlocalizedName().substring(5), "inventory"));
  12.  
  13. Model file for block:
  14. add the "parent": "block/block" line
  15.  
  16. Model file for item:
  17. { "parent": "block/theblockname" }
  18. literally it
Add Comment
Please, Sign In to add comment