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.

Serowi913

Members
  • Joined

  • Last visited

  1. I'm trying to make a mod with fabric that simply makes a new sword in the game, but it keeps messing up on this line: package Serowi913.zA.Hand0; import net.fabricmc.api.ModInitializer; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.util.registry.Registry; import net.minecraft.util.Identifier; public class zahando implements ModInitializer { public static final Item ZA_HANDO = new Item(new Item.Settings().group(ItemGroup.MISC)); @Override public void onInitialize() { // This code runs as soon as Minecraft is in a mod-load-ready state. // However, some things (like resources) may still be uninitialized. // Proceed with mild caution. System.out.println("Hello Fabric world!"); Registry.register(Registry.ITEM, new Identifier("zahando", "za_hando")ZA_HANDO); } } The line is the one that starts with Registry.register. There's always soemthing wrong with that line, and it's usually either ITEM or register that messes up, and there isnt any quick fixes, so idk what to do. And when I run it without the registry line, it launches Minecraft perfectly fine. I'm very lost. Also I'm using vs code if that helps.

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.