java - Minecraft 1.8 mod texture issues -


so started learning mod, , going until hit texturing. able texture block in game wrong. if got in inventory come unknown texture instead of 1 on physical block. here 3 json files;

genericdirt blockstate json

{     "variants": {         "normal": { "model": "generic:genericdirt" }     } } 

genericdirt item json

{     "parent": "generic:block/genericdirt",     "display": {         "thirdperson": {             "rotation": [ 10, -45, 170 ],             "translation": [ 0, 1.5, -2.75 ],             "scale": [ 0.375, 0.375, 0.375 ]         }     } } 

genericdirt block json

{     "parent": "block/cube_all",     "textures": {         "all": "generic:blocks/genericdirt"     } } 

any appreciated, , if need more code, please ask me , give you.

i ended having add render code, oh well, case solved :d

render code:

if(event.getside() == side.client) {  fmlcommonhandler.instance().bus().register(new keyinputhandler());  renderitem.getitemmodelmesher().register(item.getitemfromblock(genericdirt),0, new modelresourcelocation("generic" + ":" + ((genericdirt) genericdirt).getname(), "inventory")); }   

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -