Everything posted by GotoLink
-
Side-Only classes
You need to build a packet with some data, make sure it uses your channel and send it
-
[PLZ HELP] Event issue
But as I said, with LivingUpdateEvent, it is possible to make something similar.
-
Side-Only classes
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.
Can you send the installer and run it with command line ?
-
[RESOLVED] Display names for items appearing as the same name
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).
-
1.6.2 Armor Multiplayer Issues
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?
you need a if(!world.isRemote) before spawning the item.
-
How would I go about creating new horse armor?
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
Nice would you share it ?
-
[PLZ HELP] Event issue
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
Or tell Forge to download it for your you. I support javassist.
-
[PLZ HELP] Event issue
LivingAttackEvent then a check for EntityLivingBase as an instanceof EntityPlayer should do.
-
Overriding BlockWood has weird outcomes
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
getRequiredPermissionLevel() should do, doesn't it ?
-
Overriding BlockWood has weird outcomes
You can instead register a CraftingHandler (implements ICraftingHandler) that will enable you to change the planks to your custom ones when they are crafted.
-
[1.6.2][HELP WITH MODDING] Different placed block metadata based on players dir.
MovingObjectPosition class ?
-
Sword damage/tool efficiency based on NBT
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 ?
-
Overriding BlockWood has weird outcomes
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
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
-
Overriding BlockWood has weird outcomes
Yes, don't do this. Use a new id.
-
Overriding BlockWood has weird outcomes
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
You didn't use the installer. Fail.
-
[solved]Music discs with 1.6.2
Make a class extends ItemRecord , then.
-
Full armor set effect and double jump [1.6.2]?
What is the old code ?
-
[solved]Music discs with 1.6.2
Hi Remove false
IPS spam blocked by CleanTalk.