@Override public void end(ItemStack hammer) { ItemNBTHelper.setBoolean(hammer, "CanMagnet", true); ItemNBTHelper.setBoolean(hammer, "IsMagnetOn", true); super.end(hammer); // this.item.getEntityItem().stackSize = this.item.getEntityItem().stackSize-quantity; }
@Override public boolean canCraft(List<EntityItem> items, ItemStack stack) { return super.canCraft(items, stack) && !ItemNBTHelper.getBoolean(stack, "CanMagnet", false); // return !ItemNBTHelper.getBoolean(stack, "CanMagnet", false) && // item.getEntityItem().getItem()==ModItems.itemEnergyModule && item.getEntityItem().stackSize // >= quantity; }