-
[1.7.10] Help with initializing TradeHandler
Thankyou.
-
[1.7.10] Help with initializing TradeHandler
This, again. As I said, I don't know how to do that, as I mentioned in my previous post! "I thought I would need to call the code, but I don't know how I would go about doing that, calling it by TradeHandler.mainRegistry(); brings up the error "the method mainRegistry() is undefined for the type TradeHandler. Sorry for the newbieness but I am really stuck here "
-
[1.7.10] Help with initializing TradeHandler
Ok, I only changed the names of the items, I'll make some up if you require it. [embed=425,349]ModItem.mainRegistry(); MagicOrb.mainRegistry(); BlueCrystal.mainRegistry(); GreenCrystal.mainRegistry(); RedCrystal.mainRegistry(); PurpleCrystal.mainRegistry(); OrangeCrystal.mainRegistry(); YellowCrystal.mainRegistry(); CrystalComponent.mainRegistry(); CrystalEnergyCell.mainRegistry(); EnergyPlastic.mainRegistry(); EnergySteel.mainRegistry(); EnergyRubber.mainRegistry(); CrystalBlock.mainRegistry();[/embed]
-
[1.7.10] Help with initializing TradeHandler
I said that I censored all of my mod items for my privacy, they all have their own names, but they are renamed to mod items by me I thought I would need to call the code, but I don't know how I would go about doing that, calling it by TradeHandler.mainRegistry(); brings up the error "the method mainRegistry() is undefined for the type TradeHandler. Sorry for the newbieness but I am really stuck here
-
[1.7.10] Help with initializing TradeHandler
Hello, I am relatively new to Java and Minecraft modding, but after a few online lessons, tutorials and trial and error I have started to pick up the flow Java of using Forge. I have started developing a mod because it may create a good impression on my computing teacher if I show her I have done some coding out of school (I'm 13 (14 in 9 days) by the way, working my way towards GCSE's ). Anyway, I am trying to create custom villager trades for my mod, and have created a class that is supposed to do just that, but when I start the game (no crashes or anything), villagers don't offer me the trades (trust me I have tried about 50-75 villagers per attempt). I have managed to fix all the bugs in development so far, but I am stuck on this one. I have been searching for help for about 4-5 hours, and after finding nothing that helped me, I have decided to write this post. The items I use in my mod are censored as ModItem for my privacy MainRegistry Code: http://pastebin.com/pyT6ax0c TradeHandler Code: http://pastebin.com/qh0JkhwG My theory is that I have to initialize TradeHandler in MainReigstry, I don't know how, or that theory may just be wrong all together. Any and all help is very much appreciated! Kind regards - general223
IPS spam blocked by CleanTalk.