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.

Felcri

Members
  • Joined

  • Last visited

Everything posted by Felcri

  1. I am trying to make a mod which adds a new pickaxe to the game and I cant create a new tool material. Mod Code: package Fel.Cri; import net.minecraft.src.Block; import net.minecraft.src.EnumToolMaterial; import net.minecraft.src.Item; import net.minecraft.src.ItemStack; import net.minecraftforge.common.EnumHelper; import Felcri.Common.CommonProxyFelcri; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; //Info @Mod(modid="Felcri",name="Fel",version="1.0.0") @NetworkMod(clientSideRequired=true,serverSideRequired = false) public class mod_Fel { //blocks/items public static Block BlockFelIron_Ore; public static Item ItemFelIron_Bar; public static Item ItemFelIron_Pick; //texture proxy @SidedProxy(clientSide="Felcri.Client.ClientProxyFelcri", serverSide= "Felcri.Common.ClientProxyFelcri") public static CommonProxyFelcri proxy; @Init public void load(FMLInitializationEvent event){ //blocks/items information BlockFelIron_Ore = new BlockFelIron_Ore(255, 0).setBlockName("BlockFelIron_Ore").setHardness(3F).setResistance(5F); ItemFelIron_Bar= new ItemFelIron_Bar(500).setItemName("ItemFelIron_Bar").setIconIndex(1); ItemFelIron_Pick = new ItemFelIron_Pick(501, Feliron).setIconIndex(0).setItemName("ItemFelIron_Pick"); The error is in the ItemFelIron_Pick and it says Feliron can not be resolved to a variable. //Block Registry GameRegistry.registerBlock(BlockFelIron_Ore); //Material EnumToolMaterial Feliron = EnumHelper.addToolMaterial("Feliron", 2, 300, 6.0F, 2, 14); //Language Registry LanguageRegistry.addName(BlockFelIron_Ore, "Fel Iron Ore"); LanguageRegistry.addName(ItemFelIron_Bar, "Fel Iron Ingot"); LanguageRegistry.addName(ItemFelIron_Pick, "Fel Iron Pickaxe"); //Recipe Registry GameRegistry.addRecipe(new ItemStack(ItemFelIron_Pick,1), new Object[]{ " X ","XSX"," S ", 'X', mod_Fel.ItemFelIron_Bar, 'S', Item.stick }); //Proxy proxy.registerRenderThings(); } }

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.