Jump to content

coolboy4531

Members
  • Posts

    584
  • Joined

  • Last visited

Everything posted by coolboy4531

  1. What version of Forge are you using? ForgeGradle: 1.0 ~ 960-964 1.1 ~ 967-1047 1.2 ~ 1048+ This means your Forge version requires to be between 967 and 1047. Anything above that, requires you to update your ForgeGradle to 1.2.
  2. I'm going to be totally honest with you, your registration is probably the problem.
  3. He said item slot, as in a new space for the inventory.
  4. There are two sides in Minecraft (even on Singleplayer) the Client and the Server. The client is basically everything the player does, and the server is what the "world" does (achievements, generation, item drops, etc.)
  5. Why are you subtracting the "stack size?"
  6. Try and get an instance of the entity. To get the max hp use Entity#getMaxHealth() but set it as an int (casting). Java automatically rounds up from that float (like before casting). int maxHealth = entity.getMaxHealth();
  7. I think you mean cannon. Cannon: http://en.wikipedia.org/wiki/Cannon
  8. The NBT at loadNBTData is most likely null, do some troubleshooting.
  9. You are using the incorrect @Interface. It should be @SubscribeEvent (NOT) @EventHandler.
  10. You do realize this post is almost 2 months old, right?
  11. In fact yes. Override onFoodEaten in your Item class where you want to consume your item.
  12. Seriously? You are going to use MCreator. -.-
  13. Once again. Everything that should be in Init and PostInit should be placed over to PreInit. As Forge became ForgeGradle, everything runs differently - it is now read over PreInit (registrations, textures, etc.) - mostly everything.
  14. That means it's looking at sounds/record/records.wait (which isn't valid)
  15. Guys guys guys. Stop confusing him. Like pirulo259 said, use getItemAttributeModifiers(). BUT BE SURE TO CREATE A NEW HASHMAP, NOT THE ONE ItemSword USES!!!! It should be this: public Multimap getItemAttributeModifiers() { Multimap multimap = HashMultimap.create(); // this part, you need to create a new hash-multimap! multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(), new AttributeModifier(field_111210_e, "Weapon modifier", (double)this.field_150934_a, 0)); return multimap; }
  16. Use PlayerEvent.PlayerLoggedInEvent. It is called when a player joins a world.
  17. Merge the two things you want to do together. After you apply potion effects on ItemFood#onEaten, change the item to a piece of paper.
  18. If I remember an amplifier of 4 (Healing IV) will heal quite a lot. Try and lower it.
  19. Depends how you want it, do you want to enchant the item upon crafted?
  20. Override Item#hasEffect. @Override public boolean hasEffect(ItemStack par1ItemStack) { return false; }
  21. Why don't you set player.capabilties.allowFlying back to "false" after 3 minutes?
  22. There is no event for when a projectile hits an entity of any type. However. You can use LivingHurtEvent - check if the event's entity (event.entity) is instance of the Player. If I remember correctly, there is another a field where you can see the damage source, check if the damage source is from the Arrow before giving the entity (Player) a potion effect.
  23. There are no update methods in the Chest. You'd have to create your own (if you possibly can).
×
×
  • Create New...

Important Information

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