Solved Furnace Alternate Fuel

Discussion in 'Plugin Development' started by Matthewenderle, Apr 15, 2013.

Thread Status:
Not open for further replies.
  1. I have been looking for a method to install a second fuel, such as snowballs, to the bukkit server. I have written up this which does give me the Ice Block I want, but it uses the regular fuels instead of a snowball because I don't know how to add the snowball to the constructor.

    Code:
      public void onEnable()
      {
        plugin = this;
     
        this.getServer().addRecipe(new FurnaceRecipe(new ItemStack(Material.ICE), Material.WATER_BUCKET, 0));
    Any help would be appreciated.

    View attachment 13389
     
  2. Matthewenderle
    Fuels are not actual recipes, if you've even read the post you linked this in, new fuels can be done with an event.

    Also it's very complicated to make a fuel work with a specific furnace recipe, so if you don't have experience I suggest you don't bother with that.
     
  3. I understand that fuels are not included in the recipe now. I was just trying to get a way where I could cancel the recipe for that instance if the fuel itemstack wasn't a snowball. I'll just do a shapeless workbench recipe then.
     
Thread Status:
Not open for further replies.

Share This Page