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.

kennybenny

Members
  • Joined

  • Last visited

Everything posted by kennybenny

  1. Well now the block isn't showing up in the creative tab when I test it, do you know why?
  2. Okay, now it's giving me the errors "MODID cannot be resolved to a variable" and "moreMetalsTab cannot be resolved to a variable" Do you know how to fix that?
  3. Hello, I need help with my texturing, when test run it just shows the untextured texture. Here is my main file's code: package k3.moreMetals; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Items; import net.minecraft.item.Item; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = moreMetalsMod.MODID, version = moreMetalsMod.VERSION) public class moreMetalsMod { public static final String MODID = "moreMetals"; public static final String VERSION = "1.0"; public static Block orePlatinum; public static Item chunkPlatinum; public static CreativeTabs moreMetalsTab = new CreativeTabs("moreMetalsStuff"){ @Override public Item getTabIconItem() { return Items.emerald; } }; @EventHandler public void preInit(FMLPreInitializationEvent preevent){ chunkPlatinum = new Item().setUnlocalizedName("chunkPlatinum").setCreativeTab(moreMetalsTab).setTextureName(MODID + ":" + "chunkPlatinum"); GameRegistry.registerItem(chunkPlatinum, "chunkPlatinum"); orePlatinum = new BlockPlatOre().setBlockName("orePlatinum").setCreativeTab(moreMetalsTab).setBlockTextureName(MODID + ":" + "orePlatinum"); GameRegistry.registerBlock(orePlatinum, "orePlatinum"); } @EventHandler public void init(FMLInitializationEvent event){ } } here's the BlockPlatOre code: package k3.moreMetals; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class BlockPlatOre extends Block { public BlockPlatOre() { super(Material.iron); } } the orePlatinum texture is in assets.moreMetals.textures.blocks and the chunkPlatinum is in assets.moreMetals.textures.items. Also, the images are png files.

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.