How would i go about adding a fly effect to the player when he/she wears a certain suit of armor. i know i would add this to the OnTickInGame function just not sure what the code is. so can anyone help me.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The Meaning of Life, the Universe, and Everything.
Join Date:
11/20/2012
Posts:
62
Member Details
I found this codes in Armor Moviment MOD.
The are a JetPack that make you fly.
I don't know exactly where the code is, but you can take a look and see if anything helps.
public void addRenderer(Map map)
{
map.put(EntityHook, new bcf(Hook.b(0)));
}
yeah i really dont understand the code at all. when i code i name my variables something simple that explains basically what it is, not var1 and var2, thats one thing i hate about how mojang set up some of their code. thanks for trying to help. appreciate it
thePlayer() should help you.
Or you could move to MinecraftForge.
That's just the top of my head.
also i do have the little thing that you put in the load function
together they are powerful beyond imagination."
The are a JetPack that make you fly.
I don't know exactly where the code is, but you can take a look and see if anything helps.
this worked and then i changed something... not in this part of the code but it stoped working
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
ModLoader.getMinecraftInstance().thePlayer.capabilities.allowFlying = true;
return par1ItemStack;
}