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.

MrFiretruck

Members
  • Joined

  • Last visited

Everything posted by MrFiretruck

  1. Sorry, I had an extension that was blocking certain parts. Thanks for your help.
  2. Can you explain Exactly how to register Items? The docs seem a bit confusing in the way of registering items @diesieben07 @jeffryfisher
  3. I looked through GameRegistry, and I can't figure out much that will register items. Can you help?
  4. Im fairly new, and that seems to be a bit complicated. The book said I should use GameRegistry.registerItem, is it a change in the newer versions of forge? And do you know what exact code i should use? All videos and books i see seem to have GameRegistry.registerItem and it doesnt work ;-; help me pls
  5. MrFiretruck posted a topic in Modder Support
    I only started coding a few days ago, so I am fairly new. I have been learning of a book, and came across an error in eclipse when trying to register an Item: package com.mrfiretruck.extramoddedminecraft; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.enchantment.Enchantment; @Mod(modid = ExtraModdedMinecraft.MODID, version = ExtraModdedMinecraft.VERSION) public class ExtraModdedMinecraft { public static final String MODID = "mrfiretruck_extramoddedminecraft"; public static final String VERSION = "1.0"; public static Item ruby; @EventHandler public void preInit(FMLInitializationEvent event) { //Item init ruby = new ItemRuby(); //Item Registry GameRegistry.registerItem(ruby, "Ruby"); } public void init(FMLInitializationEvent event) { } } under registerItem is an error saying "The method registerItem(Item, String) is undefined for the type GameRegistry" How do i fix this? I tried running the game and it just crashed rip

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.