Guest User

Untitled

a guest
May 17th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Item item = Item.getItemFromBlock(block);
  2. ModelBakery.registerItemVariants(item);
  3. ModelResourceLocation loc = new ModelResourceLocation(Constants.MODID + ":fluids.json", name);
  4. ModelLoader.setCustomMeshDefinition(item, new ItemMeshDefinition() {
  5. @Override
  6. public ModelResourceLocation getModelLocation(ItemStack stack) {
  7. return loc;
  8. }
  9. });
Add Comment
Please, Sign In to add comment