
GotoLink
Members-
Posts
2012 -
Joined
-
Last visited
-
Days Won
1
Everything posted by GotoLink
-
You need to build a packet with some data, make sure it uses your channel and send it
-
But as I said, with LivingUpdateEvent, it is possible to make something similar.
-
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.
-
Please help putting forge on my server.
GotoLink replied to rollbacksmiley's topic in Support & Bug Reports
Can you send the installer and run it with command line ? -
[RESOLVED] Display names for items appearing as the same name
GotoLink replied to HazeTrance's topic in Modder Support
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). -
You are calling ModLoader.addArmor(String) 4 times, while 1 is enough. Look at what the method is doing next time
-
How would I go about making an autosmelting pickaxe?
GotoLink replied to kenoba10's topic in Modder Support
you need a if(!world.isRemote) before spawning the item. -
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.
-
[export only, enter at your own risk] ASM help needed
GotoLink replied to hydroflame's topic in Modder Support
Nice would you share it ? -
Right, my bad Then i guess you can use isSwingInProgress and the CombatTracker in EntityLivingBase to simulate that.
-
[export only, enter at your own risk] ASM help needed
GotoLink replied to hydroflame's topic in Modder Support
Or tell Forge to download it for your you. I support javassist. -
LivingAttackEvent then a check for EntityLivingBase as an instanceof EntityPlayer should do.
-
Give a proper description of your shift-click issue if you want some help Maybe you should open a new thread too.
-
[1.6][help fast!]Command for Operator or use a permission
GotoLink replied to xGamer_Allx's topic in Modder Support
getRequiredPermissionLevel() should do, doesn't it ? -
You can instead register a CraftingHandler (implements ICraftingHandler) that will enable you to change the planks to your custom ones when they are crafted.
-
Sword damage/tool efficiency based on NBT
GotoLink replied to decebaldecebal's topic in Modder Support
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 ? -
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".
-
Sword damage/tool efficiency based on NBT
GotoLink replied to decebaldecebal's topic in Modder Support
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 -
Yes, don't do this. Use a new id.
-
BlockWood already contains texture code. If you don't want to change it, don't use it into your class.
-
Forge for 1.6.2 crashes my server, Help v_v
GotoLink replied to TheEvilMouse's topic in Support & Bug Reports
You didn't use the installer. Fail. -
Make a class extends ItemRecord , then.
-
Full armor set effect and double jump [1.6.2]?
GotoLink replied to Fruitsalid's topic in Modder Support
What is the old code ? -
Hi Remove false