ShetiPhian

Forge BlockState Items

Apr 22nd, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. NOTE: I have not tested any of this; It should work though as very similar code works for itemblocks.
  2. Transforms and model may be able to be placed into "default", allowing for texture only changes per meta.
  3.  
  4.  
  5. Clientside preInit:
  6.  
  7. ModelLoader.setCustomModelResourceLocation(--ITEM--, --META1--, new ModelResourceLocation(--MODID:FILENAME--, --SUBTYPE1--));
  8. ModelLoader.setCustomModelResourceLocation(--ITEM--, --META2--, new ModelResourceLocation(--MODID:FILENAME--, --SUBTYPE2--));
  9.  
  10.  
  11. blockstates\--FILENAME--.json
  12.  
  13. {
  14. "forge_marker": 1,
  15. "variants": {
  16. --SUBTYPE1--: [{
  17. "model": "",
  18. "textures": {},
  19. "transform": {}
  20. }],
  21. --SUBTYPE2--: [{
  22. "model": "",
  23. "textures": {},
  24. "transform": {}
  25. }]
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment