mosterhunter798, on 07 January 2013 - 04:39 AM, said:
thanks.
Posted 08 January 2013 - 07:02 PM
Posted 08 January 2013 - 11:12 PM
multistar444, on 08 January 2013 - 07:57 PM, said:
@Instance("MODIDHERE")
public static <ClassNameHere> instance;
ProjectMinebook, on 08 January 2013 - 07:02 PM, said:
if(player.isSneaking)
{
return false;
}
Posted 09 January 2013 - 08:02 AM
Posted 09 January 2013 - 11:12 AM
jcm2606, on 07 January 2013 - 02:48 AM, said:
Posted 09 January 2013 - 11:30 AM
mosterhunter798, on 09 January 2013 - 11:12 AM, said:
Posted 09 January 2013 - 11:39 AM
Posted 09 January 2013 - 08:56 PM
multistar444, on 09 January 2013 - 12:29 PM, said:
ProjectMinebook, on 09 January 2013 - 11:39 AM, said:
Posted 10 January 2013 - 08:30 AM
jcm2606, on 09 January 2013 - 11:30 AM, said:
Posted 10 January 2013 - 10:24 AM
mosterhunter798, on 10 January 2013 - 08:30 AM, said:
Posted 10 January 2013 - 10:31 AM
jcm2606, on 10 January 2013 - 10:24 AM, said:
Posted 10 January 2013 - 10:54 AM
package technology.mod;
import cpw.mods.fml.common.network.Player;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class ItemExpBanker extends Item {
public ItemExpBanker(int id) {
super(id);
// Constructor Configuration
maxStackSize = 64;
setCreativeTab(Technology.TechnologyTab);
setIconIndex(0);
setItemName("ItemExpBanker");
this.setMaxDamage(500);
}
public String getTextureFile() {
return CommonProxy.ITEMS_PNG;
}
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if(par3EntityPlayer.isSneaking())
{
par3EntityPlayer.addExperienceLevel(1);
par1ItemStack.damageItem(1, par3EntityPlayer);
} else {
par3EntityPlayer.addExperienceLevel(-1);
par1ItemStack.damageItem(-1, par3EntityPlayer);
}
return par1ItemStack;
}
}
Posted 10 January 2013 - 11:21 AM
mosterhunter798, on 10 January 2013 - 10:31 AM, said:
ProjectMinebook, on 10 January 2013 - 10:54 AM, said:
package technology.mod;
import cpw.mods.fml.common.network.Player;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class ItemExpBanker extends Item {
public ItemExpBanker(int id) {
super(id);
// Constructor Configuration
maxStackSize = 64;
setCreativeTab(Technology.TechnologyTab);
setIconIndex(0);
setItemName("ItemExpBanker");
this.setMaxDamage(500);
}
public String getTextureFile() {
return CommonProxy.ITEMS_PNG;
}
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) {
if(par3EntityPlayer.isSneaking())
{
par3EntityPlayer.addExperienceLevel(1);
par1ItemStack.damageItem(1, par3EntityPlayer);
} else {
par3EntityPlayer.addExperienceLevel(-1);
par1ItemStack.damageItem(-1, par3EntityPlayer);
}
return par1ItemStack;
}
}
Posted 10 January 2013 - 11:49 AM