Everything posted by coolboy4531
-
[1.7.2] Releasing mod
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.
-
[1.7.2]Shapeless Recipe Crashing Game
I'm going to be totally honest with you, your registration is probably the problem.
-
[1.7.2] Adding an item slot to the player's inventory?
He said item slot, as in a new space for the inventory.
-
Verify Achievement
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.)
-
Durable Item Question
Why are you subtracting the "stack size?"
-
[1.7.2] Changing A Mobs Max Health
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();
-
[1.7.2]Want to add a canon
I think you mean cannon. Cannon: http://en.wikipedia.org/wiki/Cannon
-
[1.7.2] Using IExtendedEntityProperties
The NBT at loadNBTData is most likely null, do some troubleshooting.
-
[1.7.2]How do I tell what a players name is?
You are using the incorrect @Interface. It should be @SubscribeEvent (NOT) @EventHandler.
-
Checking when I close the game
PlayerEvent.PlayerLoggedOutEvent
-
[1.7.2]Random Item Drop help
You do realize this post is almost 2 months old, right?
-
onFoodEaten Event?
In fact yes. Override onFoodEaten in your Item class where you want to consume your item.
-
[1.7.2]Getting an item after eating food
Seriously? You are going to use MCreator. -.-
-
[1.7] Help registering textures/item names
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.
-
[1.7.2] Custom Music Discs
That means it's looking at sounds/record/records.wait (which isn't valid)
-
How to set damage to custom sword
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; }
-
[Solved][1.7.2]How do I detect when a player joins a world?
Use PlayerEvent.PlayerLoggedInEvent. It is called when a player joins a world.
-
Making Custom Iron Bars help.
Is your class extending BlockPane?
-
[1.7.2]Getting an item after eating food
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.
-
[1.7.2] setPotionEffect instant heal problem [please help]
If I remember an amplifier of 4 (Healing IV) will heal quite a lot. Try and lower it.
-
Enchantment without the effects
Depends how you want it, do you want to enchant the item upon crafted?
-
Enchantment without the effects
Override Item#hasEffect. @Override public boolean hasEffect(ItemStack par1ItemStack) { return false; }
-
[1.7.2] player flying for 3 minutes on item right click?
Why don't you set player.capabilties.allowFlying back to "false" after 3 minutes?
-
Giving players potion effects when hit by a projectile
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.
-
Updating an item inside of a chest?
There are no update methods in the Chest. You'd have to create your own (if you possibly can).
IPS spam blocked by CleanTalk.