Jump to content

programming4life

Members
  • Posts

    1
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

programming4life's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. hi, i'm making a simple minecraft mod. i want a pickaxe to autoSmelt on leftClick, but i can't figure out how to smelt the dropping item. code: public class darkPick extends ItemPickaxe { Boolean isSmeltOn = false; public darkPick(ToolMaterial material) { super(material); this.setFull3D(); } @Override public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer player) { if(isSmeltOn == true){ isSmeltOn = false; } if(isSmeltOn == false){ isSmeltOn = true; //autoSmelting the items } return super.onItemRightClick(item, world, player); } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.