Thanks for the detailed message. I tried everything i'm fixed a lot of stuff. But it still doesn't work. Il give you the link if you want to take a look at it.
i love this mod so much but could you please remove the lanterns and lamps its just not that minecraft if you know what i mean if it is not possible could you just give me a version without it? thanks
I know you said i cant add this in a public mod pack but the hole mod pack is based on the animations i would add your name the link to this page all of your other mods please reply asap thanks
--------------------------------------------------
Ok, you start of with your mod_**** file
Now Define the item in your mod_**** file.
EXAMPLE: Public static final ItemDagger = (new ItemDagger(100)). *Extra Features of your Item go here*
----------------------------------------------
If it was ItemDagger it would be
package net.minecraft.src;
public class ItemDagger extends Item
public ItemDagger(int i)
{
super(i);
-------------------------------
At public ItemDagger(int i) why is there the (int i)?
Because the interface will be defined as i, allowing super(i); Function to work
------------------------------
Now add your flashy epic features of flashy epic
maxStackSize = 1; MAX STACK SIZE
maxDamage = 3124; HOW DURABLE IT IS, IN THIS CASE 3124 USES
field_22047_d = 20; THE AMOUNT OF DAMAGE, 20 HEALTH OR 10 HEARTS.
Finish with a }
----------------------------------
Now we wana get the item to take damage
soo below all we added we should also add
public void hitEntity(ItemStack itemstack, EntityLiving entityliving)
{
itemstack.damageItem(1);
}
public void hitBlock(ItemStack itemstack, int i, int j, int k, int l)
{
itemstack.damageItem(2);
}
this code refers to that when the item hits a entity, it takes 1 damage, and when destroys a block, it takes 2, Mess around with that if you want
---------------------------------
Now we have to vertify function field_22047_d;
Add this below what you have added
public int getDamageVsEntity(Entity entity)
{
return field_22047_d;
}
public boolean isFull3D()
{
return true;
}
Finally finish off with this
private int field_22047_d;
}
So were done, recompile and test your weapon!
if your getting errors, use this base structure !
---------------------------------------------
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ItemDagger extends Item
{
public ItemDagger(int i)
{
super(i);
maxStackSize = 1;
maxDamage = 500;
field_22047_d = 5;
}
public void hitEntity(ItemStack itemstack, EntityLiving entityliving)
{
itemstack.damageItem(1);
}
public void hitBlock(ItemStack itemstack, int i, int j, int k, int l)
{
itemstack.damageItem(2);
}
public int getDamageVsEntity(Entity entity)
{
return field_22047_d;
}
public boolean isFull3D()
{
return true;
}
private int field_22047_d;
}
Hey everyone i recently started a new server and i use votifier but i cant seem to get how when you vote you see text like RandomPlayer Voted and recived diamond and TNT if anyone know how
please tell me THANKS!
0
Ok. Thanks for your help.
Cya
0
sorry fixed it.
0
Thanks for the detailed message. I tried everything i'm fixed a lot of stuff. But it still doesn't work. Il give you the link if you want to take a look at it.
Anyway thanks for trying.
File
Sorry must have no copied correctly
0
Thanks for commenting but I really have no idea what you are talking about.
I used opl model creator. If you could explain it to me in a simpler way.
Thanks.
Edit.
I imported it to mrcrayfishes 3d editor.
Then saved it. I still have the old json. If you want to see it.
0
I made a json file and I can't seem to get it to work. If anyone can fix it pls tell me. Thanks!
Download: .json file
0
0
0
THANKS!
0
0
0
AMAZING MOD by the way
0
0
0
0
please tell me THANKS!