Jump to content

coolboy4531

Members
  • Posts

    584
  • Joined

  • Last visited

Everything posted by coolboy4531

  1. Have you even registered your Render class with your Entity?
  2. 1) config cannot be resolved 2) The method registerProviderType(int, Class<? extends WorldProvider>, boolean) in the type DimensionManager is not applicable for the arguments (int, PlanetWorldProvider, boolean) Come on dude, this is basic stuff; basic Java, casting. 1) The code doesn't even know where "config" is. Where you load your config, and save you config is where you should put it. Why put it in load, when Forge doesn't even read it? 2) Class<? extends WorldProvider> (does not equal) PlanetWorldProvider. You need to make your PlanetWorldProvider "extend" WorldProvider. One more thing, you don't even know how to use configs. You have to create a new instance of the int in your mod, and set the value later. You can't even receive (ExoplanetaryExploration.config) because it isn't static. Please please please, don't come here until you fully understand how casting works and how fields work.
  3. We need to see your main class (Arcano), and which includes your registration stuff.
  4. I had an issue (exactly like yours) to nerf the skeleton attack speed, I ended up giving up and creating a new skeleton (identical to the vanilla one). Canceling it upon EntityJoinWorldEvent and replacing the skeleton with a new skeleton.
  5. They shouldn't work in Init. Forge has changed dramatically - ForgeGradle, and I recommend that you use preInit for everything.
  6. I have never done that before. I usually do seperate event classes if it uses another bus. Try and seperate them apart.
  7. Tell me why the heck you didn't remove: MinecraftForge.EVENT_BUS.register(new NGUEventHandler()); I usually post my events on postInit(FMLPostInitializationEvent event)
  8. That's exactly the problem, wrong event bus. The event is an FML event. You should use: FMLCommonHandler.instance().bus().register(Object obj); #obj = your event handler class.
  9. You can use Java Reflection, to solve that issue. There is a method (onBlockPlaced) in vanilla Minecraft classes, (super.onBlockPlaced(***)) is required of course. If you would like to cancel it, you could use Reflection and modify the Block class at runtime.
  10. Correct me if I'm wrong, but I thought it's suppose to be: http://www.google.com/
  11. Use: @Override public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack stack) { } Check whether or not the slot is equipped with what item you want. Psuedo Code: @Override public void onArmorTickUpdate(World world, EntityPlayer player, ItemStack stack) { if (player.getCurrentArmor(0) == ZealCraft.quickBoots) { //do action } } 0 - Boots 1 - Leggings 2 - Chestplate 3 - Helmet (correct me, if I'm wrong)
  12. How have you been registering it? Show me you main class.
  13. Okay okay. If you take a look. fluffy (is not the same as) lantern. It should be assets/lantern/sounds
  14. Not that I know of, you can look at how Minecraft does it with the difficulties. The only way (complex) I can think of right now is EntityJoinWorldEvent. You can check for mobs and cancel the event.
  15. Let me tell you this, the best way for us to help you is... to post your code everytime you fix something.
  16. Look at another forum. http://www.minecraftforge.net/forum/index.php?topic=17011.0
  17. Try this. http://www.youtube.com/watch?v=MTGJXO_2Kks
  18. You did everything in FMLInitializationEvent. Starting - 1.7, Forge now loads things with FMLPreInitializationEvent In other words change init(load) to preInit.
  19. Imports? Not exactly sure what you're looking for though.
  20. Okay, sorry. I'm not familiar with 1.7.2, so I need help. How/Where do I set the texture for my custom mob? (noob question, I know, sorry)
  21. However, I really don't want to turn my mod into a coremod. I prefer using Java reflection. @diesieben: I got 2 questions. How would I change the field value? new EntityAIArrowAttack(this, 1.0D, 60, 60, 15.0F); For "getDeclaredField(String field)" Do I use the SRG name (func_****, field_****) or compiled names (aiArrowAttack)? I really couldn't understand what you were trying to tell me "both ways."
×
×
  • Create New...

Important Information

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