Everything posted by Ronaldi2001
-
[UnSolved] [1.9.4] Multi Tool
I already have a multi tool that works as shovel, axe, pickaxe, and sword. The pickaxe and axe works perfectly fine. When using the axe feature of it it only breaks planks and logs and no modded wooden items. When using the sword part of it it kills perfectly fine but it doesnt give any mob drops, it only gives mob drops from modded mobs. package ronaldi2001.MoreItems.tools; import java.util.List; import java.util.Set; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Sets; import net.minecraft.block.Block; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemSpade; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.util.text.TextFormatting; import net.minecraft.world.World; import net.minecraftforge.client.event.sound.PlaySoundEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import ronaldi2001.MoreItems.ColorfulText; import ronaldi2001.MoreItems.init.MoreItemsTools; import ronaldi2001.MoreItems.main.MoreItems; public class UltimateDemolisher extends ItemPickaxe { public UltimateDemolisher() { super(MoreItemsTools.ULTIMATETOOLS); this.setUnlocalizedName("ultimate_demolisher"); this.setCreativeTab(MoreItems.tabMoreItems); this.setRegistryName("ultimate_demolisher"); GameRegistry.register(this); damageVsEntity = 99.0F; attackSpeed = 6.0F; } @Override public Set<String> getToolClasses(ItemStack stack) { return ImmutableSet.of("pickaxe", "axe", "shovel", "sword"); } @SideOnly(Side.CLIENT) public void addInformation(ItemStack itemstack, EntityPlayer player, List datalist, boolean bool){ datalist.add(TextFormatting.YELLOW + "Pickaxe, Shovel, Axe, and Sword"); datalist.add(TextFormatting.YELLOW + ColorfulText.ultimate("No Durability")+TextFormatting.RESET+""); } @Override public boolean hasEffect(ItemStack par1ItemStack) { return true; } }
-
[Solved] [1.9.4] Ore Dictionaary
I am adding Ore Dict to my mod and I have an item that when used in crafting the durability goes down but when you use the ore Dict recipe you can only use the item once and the when it has durability the ore Dict goes away. I added the WILDCARD_VALUE to it but .registerOre is underlined in red. OreDictionary.registerOre("hammer", MoreItemsItems.hammer); How can I make this so that when the hammer has durability it still has the ore Dict name.
-
[Unsolved] [1.10.2] Creative Tab Icon
I have a creative tab but I want the blocks in that creative tab switch every 5 seconds to another block from that creative tab. The creative tab that I want to edit it mine and the blocks are mine too. Help is apriciated
-
[Solved] [1.9.4] Attack speed/damage
This question makes no sense, you cannot override a class. All you need to do is extend ItemSword and override getAttributeModifiers(EntityEquipmentSlot, ItemStack) to provide whatever modifiers you want. When I said override I meant extend but I got It now thank you so much!!!
-
[Solved] [1.9.4] Attack speed/damage
I don't know?? Should I override ItemTool instead?
-
[Solved] [1.9.4] Attack speed/damage
I did it the same way I did and you said that should work but its not.
-
[Solved] [1.9.4] Attack speed/damage
What I said was wrong not every tool allows me to set the damageVsEntity and attackSpeed. The two tools that I am having trouble with is the Sword and Hoe.
-
[Solved] [1.9.4] Attack speed/damage
I got it to work and my original question works now. Thank you for all your help!!
-
[Solved] [1.9.4] Attack speed/damage
I did and what should be there I have know idea? That is my own handwriting and I turned it into a font.
-
[Solved] [1.9.4] Attack speed/damage
https://www.dropbox.com/s/iktpqkfbb8dau80/GameRegistry.PNG?dl=0 How about now?
-
[Solved] [1.9.4] Attack speed/damage
Are you able to see the picture?
-
[Solved] [1.9.4] Attack speed/damage
https://www.dropbox.com/home?preview=GameRegistry.PNG
-
[Solved] [1.9.4] Attack speed/damage
When I switch registerItem() to just register() it says I need to change it to either registerItem() or registerBlock().
-
[Solved] [1.9.4] Axe tool material
Do you know how to do set the two floats with other tools. I already have a topic open if you know the answer. That will be greatly appreciated!! http://www.minecraftforge.net/forum/index.php/topic,39890.0.html
-
[Solved] [1.9.4] Axe tool material
Thank you so much!! Thanks for the advice about when there is a crash!
-
[Solved] [1.9.4] Axe tool material
I am making an axe and I want it to have a custom tool material along with the other tools but when I put my custom tool material the launcher crashes when I try to load the game. I have this for my tool material. super(MoreItemsTools.ULTIMATETOOLS); For my tool material in the Tool class: public static ToolMaterial ULTIMATETOOLS = EnumHelper.addToolMaterial("ultimate_tools", 1000, -1, 100.0F, 22.0F, 50); All help will be appreciated!!
-
[Solved] [1.9.4] Attack speed/damage
What I have is the first thing I tried but it didn't work so idk. but this is the line in my class where I register the sword: GameRegistry.registerItem(ultimate_sword = new UltimateSword(ULTIMATETOOLS), "ultimate_sword"); With the .registerItem striked out.
-
[Solved] [1.9.4] Attack speed/damage
I put all this in. I would assume that it would work with this but it doesn't. package ronaldi2001.MoreItems.tools; import java.util.List; import com.google.common.collect.Multimap; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.util.text.TextFormatting; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import ronaldi2001.MoreItems.ColorfulText; import ronaldi2001.MoreItems.init.MoreItemsTools; import ronaldi2001.MoreItems.main.MoreItems; public class UltimateSword extends ItemSword { private final float attackDamage; private final Item.ToolMaterial material; public UltimateSword(Item.ToolMaterial material) { super(MoreItemsTools.ULTIMATETOOLS); this.material = material; this.setUnlocalizedName("ultimate_sword"); this.setCreativeTab(MoreItems.tabMoreItems); this.attackDamage = 99.0F + material.getDamageVsEntity(); } public float getDamageVsEntity() { return this.material.getDamageVsEntity(); } @Override public boolean hasEffect(ItemStack par1ItemStack) { return true; } @SideOnly(Side.CLIENT) public void addInformation(ItemStack itemstack, EntityPlayer player, List datalist, boolean bool){ datalist.add(TextFormatting.YELLOW + ColorfulText.ultimate("No Durability")+TextFormatting.RESET+""); } public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) { Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot); if (equipmentSlot == EntityEquipmentSlot.MAINHAND) { multimap.put(SharedMonsterAttributes.ATTACK_DAMAGE.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_DAMAGE_MODIFIER, "Weapon modifier", (double)this.attackDamage, 0)); multimap.put(SharedMonsterAttributes.ATTACK_SPEED.getAttributeUnlocalizedName(), new AttributeModifier(ATTACK_SPEED_MODIFIER, "Weapon modifier", -2.4000000953674316D, 0)); } return multimap; } }
-
[Solved] [1.9.4] Attack speed/damage
How exactly would I do that?
-
[Solved] [1.9.4] Attack speed/damage
Code In the sword class: package ronaldi2001.MoreItems.tools; import java.util.List; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.util.text.TextFormatting; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import ronaldi2001.MoreItems.ColorfulText; import ronaldi2001.MoreItems.main.MoreItems; public class UltimateSword extends ItemSword { private final float attackDamage; public UltimateSword(String unlocalizedName, ToolMaterial material) { super(material); this.setUnlocalizedName(unlocalizedName); this.setCreativeTab(MoreItems.tabMoreItems); this.attackDamage = 99.0F; } @Override public boolean hasEffect(ItemStack par1ItemStack) { return true; } @SideOnly(Side.CLIENT) public void addInformation(ItemStack itemstack, EntityPlayer player, List datalist, boolean bool){ datalist.add(TextFormatting.YELLOW + ColorfulText.ultimate("No Durability")+TextFormatting.RESET+""); } } The outcome in Minecraft: https://www.dropbox.com/s/zj1kl3q2pu77x6b/Ultimate%20Sword%20In%20Inventory.png?dl=0
-
[Solved] [1.9.4] Attack speed/damage
I'm not using ItemTool. I'm using ItemPickaxe or like ItemSword.
-
[Solved] [1.9.4] Attack speed/damage
It doesn't let me do this unless the toll is an axe.
-
[Solved] [1.9.4] Attack speed/damage
How exactly would I put it in my tool class that I want the damage be 100 and attack speed to be +10. I looked in the ItemTool call but I don't see what i'm supposed to do.
-
[Solved] [1.9.4] Attack speed/damage
I don't see it being overrided I just see where it is being implemented in ItemTool.
-
[1.9.4] [SOLVED] Singular item class, change block placed upon registry
He/She does the same thing to me. Jeez their personal text is right.
IPS spam blocked by CleanTalk.