Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Alright so I am new to the modding community and I am wondering what I need to do to add a fuel!

Here is my code for my Item Class It is near the bottom:

 

 

package korcraft;

 

import net.minecraft.src.Item;

import net.minecraft.src.ItemStack;

import net.minecraft.src.ModLoader;

import net.minecraft.src.TileEntityFurnace;

public class ItemClass extends Item {

 

protected ItemClass(int par1) {

super(par1);

}

public String getTextureFile(){

return "/KorCraftTextures/Items.png";

}

        public int getItemBurnTime(ItemStack itemstack){

 

int i = itemstack.getItem().shiftedIndex;

 

if(i == KorCraftBase.FireCoal.shiftedIndex){

return 16000;//1600 per coal and 3200 for volcanite clump

}else

if(i == KorCraftBase.VolcaniteClump.shiftedIndex){

return 3200;//800 per volcanite shard

}else

if(i == KorCraftBase.VolcaniteShard.shiftedIndex){

return 800;//800 for a volcanite shard

}else

return 0;

}

 

                Alright, so my problem is that it is not registering my items as a fuel when I put it in a furnace. If you have any advice please email me @ [email protected]

}

 

The Korecraft Mod

You should make a class which implements IFuelHandler, then do the same thing as you're doing in your item class, then register is using cpw.mods.fml.common.registry.GameRegistry.registerFuelHandler.

  • Author

Alright, thanks that did work and I am now in my 0.0.1.1012B stage (working fuels and stuff) next step is 0.0.1.2000A(working elemental picks!)(Oh god for the coding on that... need to add a new enchantment without occupying the slot for enchantment!)

The Korecraft Mod

Why is everybody talking about elemental pickaxes all of a sudden? Not to be rude or anything, but I saw another post about elemental pickaxes as well...

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.