Jump to content

Client Wont Start When I Add Crafting Recipes


jamesc554544

Recommended Posts

public static void InitRecipes(){

 

ItemStack itemRedstonePickaxe;

ItemStack itemRedstoneAxe;

ItemStack itemRedstoneShovel;

ItemStack itemRedstoneSword;

ItemStack itemRedstoneHoe;

 

itemRedstonePickaxe = new ItemStack(redstonePickaxe);

itemRedstonePickaxe.addEnchantment(Enchantment.efficiency, 3);

itemRedstoneAxe = new ItemStack(redstoneAxe);

itemRedstoneAxe.addEnchantment(Enchantment.efficiency, 3);

itemRedstoneShovel = new ItemStack(redstoneShovel);

itemRedstoneShovel.addEnchantment(Enchantment.efficiency, 3);

itemRedstoneSword = new ItemStack(redstoneSword);

itemRedstoneSword.addEnchantment(Enchantment.sharpness, 3);

itemRedstoneHoe = new ItemStack(redstoneHoe);

itemRedstoneHoe.addEnchantment(Enchantment.unbreaking, 3);

 

ItemStack sticks = new ItemStack(net.minecraft.init.Items.stick);

        ItemStack redstone = new ItemStack(net.minecraft.init.Items.redstone);

 

GameRegistry.addRecipe(itemRedstonePickaxe, new Object[]{"xxx", " y ", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{" xx", " yx", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{"xx ", "xy", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneShovel, new Object[]{" x ", " y ", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneSword, new Object[]{" x ", " x ", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{" xx", " y ", " y ",

        'x', redstone, 'y', sticks});

GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{"xx ", " y ", " y ",

        'x', redstone, 'y', sticks});

 

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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