Advertisement
Guest User

Untitled

a guest
Feb 19th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.32 KB | None | 0 0
  1. // RenderRegistry.java
  2. public class RenderRegistry
  3. {
  4.     public static void registerRenders()
  5.     {
  6.         // Items
  7.         register(ItemRegistry.flammableBook, "flammableBook");
  8.         register(ItemRegistry.pyromanticTome, "pyromanticTome");
  9.         register(ItemRegistry.blaziumDiamond, "blaziumDiamond");
  10.         register(ItemRegistry.fireBerry, "fireBerry");
  11.         register(ItemRegistry.blaziumPick, "blaziumPick");
  12.         register(ItemRegistry.goldenPotato, "goldenPotato");
  13.         register(ItemRegistry.goldenPoisonousPotato, "goldenPoisonousPotato");
  14.     }
  15.  
  16.     public static void register(Item item, String itemName)
  17.     {
  18.         ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Info.MODID + ":" + itemName, "inventory"));
  19.     }
  20. }
  21.  
  22. // block/blaziumLamp.json
  23. {
  24.     "parent": "block/cube_column",
  25.     "textures": {
  26.         "end": "pyromancy:blocks/blaziumLampTop",
  27.         "side": "pyromancy:blocks/blaziumLampSide"
  28.     }
  29. }
  30.  
  31. // blockstates/blaziumLamp.json
  32. {
  33.   "variants": {
  34.     "normal": {"model": "pyromancy:blaziumLamp"}
  35.   }
  36. }
  37.  
  38. // item/blaziumLamp.json
  39. {
  40.   "parent": "pyromancy:block/blaziumLamp",
  41.   "display": {
  42.     "thirdperson": {
  43.       "rotation": [ 10, -45, 170 ],
  44.       "translation": [ 0, 1.5, -2.75 ],
  45.       "scale": [ 0.375, 0.375, 0.375 ]
  46.     }
  47.   }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement