-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
First things first, this is not the proper forum for this type of post. This forum is for posting problems with code, models, etc. 1.7.10 is so old, it is 6 versions behind Minecraft itself and 5 versions behind the currently supported forge version. You should update to at least 1.10.2 and obviously at best 1.12.2 It is for these two reasons that this thread will be locked by a forum moderator/admin later.
-
It says what to use in the java doc above the method, if you look in GameRegistry it will tell you what to use instead.
-
Exported Minecraft Mod > Can't join Multiplayer
Animefan8888 replied to Adiber's topic in Modder Support
@diesieben07Could you lock this thread based on the fact that adiber isn't even using forge. -
And once you have read it and possibly have questions come back and ask and I will answer.
-
-
This is a link to my ModelRegistryEvent for a WIP mod if you trace it back you will see how it all comes together. I feel it might be easier than explaining it all to you with a back and forth.
-
Who told you to do anything with those methods?
-
First off this is a horrible modid Secondly is the folder path assets/bf/recipes? Edit: also is there any error in the log?
-
How can I add redstone components?
Animefan8888 replied to WillTheGameDecoder's topic in Modder Support
Does observedNeighborChange get called? -
You're passing a null item into setCustomModelResourceLocation.
-
Patient: Ouch doctor it hurts Doctor: Where does it hurt. Patient: Right there Doctor: Where is there?
-
Where are you calling ModelLoader.setCustom...
-
How can I add redstone components?
Animefan8888 replied to WillTheGameDecoder's topic in Modder Support
Could it possibly be the fact that the method swapBlock is called twice -
This isn't true forge will automatically append your mods modid as long as it is your mod that it is constructing, aka dont use static initializers.
-
In your case 0, but some items have a magical number that allows you to differentiate between different states, or in some cases a "new item". Also dont disregard the advice of the other people especially DaemonUmbra. They know what they are talking about a lot of the time.
-
If you use ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(getRegistryName(),...) then it will look for a file at assets/modid/models/item/registryname.json
-
Do you have the import?
-
How can I add redstone components?
Animefan8888 replied to WillTheGameDecoder's topic in Modder Support
Define breaking. Post updated code, preferably the whole class. -
Simply put you need an item instance so new Item(...). Then you need to subscribe to the RegistryEvent.Register<Item> and register your item. Then subscribe to ModelRegistryEvent and call ModelLoader.setCustomModelResourceLocation(yourItemInstance, the metadata, and then the model location). The model location is a ModelResourceLocation. Typically it is instantiated by passing in your items registry name and then a string called inventory.