Jump to content

GotoLink

Members
  • Posts

    2012
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by GotoLink

  1. You need to build a packet with some data, make sure it uses your channel and send it
  2. But as I said, with LivingUpdateEvent, it is possible to make something similar.
  3. You can send this "mode" (better, the guibutton id) of yours in a packet, alongside player username. The server can then change a variable in the item the given player has.
  4. Can you send the installer and run it with command line ?
  5. LanguageRegistry.addName() asks for your item return of method getUnlocalizedName(). In your ModFood, it is null because you are overriding setUnlocalizedName to change your own internal String instead of the one in the Item class. Either use super.setUnlocalizedName(string) in it, or don't override it (i highly recommend this, since you don't use your unlocalizedname string).
  6. You are calling ModLoader.addArmor(String) 4 times, while 1 is enough. Look at what the method is doing next time
  7. you need a if(!world.isRemote) before spawning the item.
  8. In 1.6.2, the only way i see is to make a custom horse entity with a custom inventory. That is because there isn't an ItemHorseArmor.
  9. Right, my bad Then i guess you can use isSwingInProgress and the CombatTracker in EntityLivingBase to simulate that.
  10. Or tell Forge to download it for your you. I support javassist.
  11. LivingAttackEvent then a check for EntityLivingBase as an instanceof EntityPlayer should do.
  12. Give a proper description of your shift-click issue if you want some help Maybe you should open a new thread too.
  13. getRequiredPermissionLevel() should do, doesn't it ?
  14. You can instead register a CraftingHandler (implements ICraftingHandler) that will enable you to change the planks to your custom ones when they are crafted.
  15. So you found weaponDamage in ItemSword, but didn't search where it is used in the class ? You couldn't found the "Weapon modifier" AttributeModifier ? You found efficiencyOnProperMaterial in ItemTool, but couldn't find getStrVsBlock method ? It should be !player.capabilities.isCreativeMode , obviously...where did you learn to code ?
  16. First, check that your new block works as intended. (obviously you need to initialize it the same way as Mojang, if you don't want to change that) Then if that is what you want, you can register recipes with your block as a input or output to override vanilla ones. You can't change the blocks into the blockList because they are "final".
  17. You can see damage change in ItemSword, and harvest in ItemTool, though ForgeHooks contains a hook in case you need it. I am quite sure you can add enchantment at any time, I'd look at ItemEnchantedBook if I were you. This. player.capabilities.isCreativeMode == false is wrong. Fix, please
  18. Yes, don't do this. Use a new id.
  19. BlockWood already contains texture code. If you don't want to change it, don't use it into your class.
  20. You didn't use the installer. Fail.
  21. Make a class extends ItemRecord , then.
  22. What is the old code ?
  23. Hi Remove false
×
×
  • Create New...

Important Information

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