Advertisement
Superloup10

Test4

Apr 14th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1.     Dans ta classe principale (dans le preInit):
  2.     SaumonCuit = new SaumonCuit(6,0.5F,false).setUnlocalizedName("SaumonCuit").setTextureName("physicalsciences:SaumonCuit");
  3.     GameRegistry.registerItem(SaumonCuit, "saumoncuit");
  4.      
  5.     Dans la classe SaumonCuit :
  6.     import net.minecraft.item.ItemFood;
  7.      
  8.     public class SaumonCuit extends ItemFood
  9.     {
  10.             public SaumonCuit(int healAmount, float saturation, boolean wolf)
  11.             {
  12.                     super(healAmount, saturation, wolf);
  13.             }
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement