How do you add fuels for the furnace with modloader?
I've tried to use this
public int AddFuel (int i)
{
if(i == Item.doorWood.shiftedIndex)
{
return 1200;
}
else
{
return i;
}
}
but it doesn't seem to do anything. Everything I've found online says to use that but I cant figure out how to get it to work. Is there something I am missing?
any help? :biggrin.gif:
Your mod_Name.java should look something like this:
public class mod_NameHere extends BaseMod
{
public int AddFuel(int i, int j)
{
if(i == Item.doorWood.shiftedIndex)
{
return 14400; //Fuel powder, each item cost 200, coal is 1600
}
return 0;
}
public mod_NameHere()
{
}
public String Version()
{
return "Mystery Block v1 for 1.8.1";
}
}
If that doesn't work, try instead of Item.doorWood find the block equivalent and see if that works(I believes it's Block.doorWood but I'm not sure) and change .shiftedIndex to .blockID.
Your mod_Name.java should ooks something like this:
public class mod_NameHere extends BaseMod
{
public int AddFuel(int i, int j)
{
if(i == Item.doorWood.shiftedIndex)
{
return 14400; //Fuel powder, each item cost 200, coal is 1600
}
return 0;
}
public mod_NameHere()
{
}
public String Version()
{
return "Mystery Block v1 for 1.8.1";
}
}
If that doesn't work, try instead of Item.doorWood find the block equivalent and see if that works(I believes it's Block.doorWood but I'm not sure) and change .shiftedIndex to .blockID.
Thank YOU! it works :biggrin.gif:
I am eternally grateful :smile.gif:
I've tried to use this
but it doesn't seem to do anything. Everything I've found online says to use that but I cant figure out how to get it to work. Is there something I am missing?
any help? :biggrin.gif:
Message me for custom mod/plugin requests
If that doesn't work, try instead of Item.doorWood find the block equivalent and see if that works(I believes it's Block.doorWood but I'm not sure) and change .shiftedIndex to .blockID.
in my mod_ file because i dont wanna be editing base classes
Thank YOU! it works :biggrin.gif:
I am eternally grateful :smile.gif: