Jump to content

izako

Members
  • Posts

    35
  • Joined

  • Last visited

Posts posted by izako

  1. On 2/11/2019 at 10:02 PM, Draco18s said:

    So, you kw that function call you put in the method created by IHasModel? The one to your proxy. 

    Copy that line. 

    Go to where you have your model registry event handler method where you cast items in a list to IHasModel. Take that line with the cast and delete it. You can also remove the instanceof check. 

    Paste the line you copied. 

    Replace this with the loop iterator (probably item).

    Delete IHasModel and all references to it.

    Tada, you're done.

    I'm not sure what i did wrong but I'm getting multiple syntax errors

    syntax errors.PNG

  2. 18 hours ago, unassigned said:

    Make your modid more unique, 'bo' is not a good modid!

     

    I believe when you are setting RegistryNames like that; you need to include your modid. There is a function for this.

    
            this.setRegistryName(yourmodid, name);

    Make sure your modid is accessed from a global field - to make changing your modid less of a pain.

     

    IHasModel is bad! Never use this. Every item/block needs a model and by implementing this useless interface you are basically saying there is a case where I don't want it to have a model. Which there isn't. Many new modders make this mistake as trying to follow someone else's bad coding practices. Remove the interface and use the ModelRegistryEvent which will access your items and register them to the ModelLoader.

     

    Also, the console should be throwing an error if you are registering things correctly. Post this error if you'd like more help. If there is no error, post back with your registration code.

    I think people do this and I do it too because it's done by literally the first modding tutorial on youtube if you make a youtube search by the youtuber loremaster. *referring to IHasModel*

  3. I don't know most of what you guys said felt like suggestions rather than the answer for the actual problem can you address the cause of the problem and how to fix it specifically? ofcourse I take suggestions too but I wan't to know the cause and answer of the problem itself.

  4. Hello. I am new to the forge forums and modding in general usually I've been fine off of youtube tutorials and just google in general. but I just can't seem to wrap my head around this error

    the texture won't render It just appears as this (images below). and also since I'm really new to modding I'm not really all that sure of what to add other than these pictures so please if there's anything else you wan't to know do let me know.

    json file.PNG

    modelinterface.PNG

    registry handler.PNG

    texture.png

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.