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.

KailoRen

Members
  • Joined

  • Last visited

  1. Fixed it, i just builded a project, not a runClient:/
  2. I created a mod but it didn't loaded, then i recreated my mod and i got the same issue. I looked into console and it says "Found non mod jar". Code: package me.kailoren.showbalancemod; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.registry.GameRegistry; @Mod( modid = ShowBalanceMod.MOD_ID, name = ShowBalanceMod.MOD_NAME, version = ShowBalanceMod.VERSION ) public class ShowBalanceMod { public static final String MOD_ID = "ShowBalanceMod"; public static final String MOD_NAME = "ShowBalanceMod"; public static final String VERSION = "1.0.1"; /** * This is the instance of your mod as created by Forge. It will never be null. */ @Mod.Instance(MOD_ID) public static ShowBalanceMod INSTANCE; /** * This is the first initialization event. Register tile entities here. * The registry events below will have fired prior to entry to this method. */ @Mod.EventHandler public void preinit(FMLPreInitializationEvent event) { } /** * This is the second initialization event. Register custom recipes */ @Mod.EventHandler public void init(FMLInitializationEvent event) { } /** * This is the final initialization event. Register actions from other mods here */ @Mod.EventHandler public void postinit(FMLPostInitializationEvent event) { } /** * Forge will automatically look up and bind blocks to the fields in this class * based on their registry name. */ @GameRegistry.ObjectHolder(MOD_ID) public static class Blocks { /* public static final MySpecialBlock mySpecialBlock = null; // placeholder for special block below */ } /** * Forge will automatically look up and bind items to the fields in this class * based on their registry name. */ @GameRegistry.ObjectHolder(MOD_ID) public static class Items { /* public static final ItemBlock mySpecialBlock = null; // itemblock for the block above public static final MySpecialItem mySpecialItem = null; // placeholder for special item below */ } /** * This is a special class that listens to registry events, to allow creation of mod blocks and items at the proper time. */ @Mod.EventBusSubscriber public static class ObjectRegistryHandler { /** * Listen for the register event for creating custom items */ @SubscribeEvent public static void addItems(RegistryEvent.Register<Item> event) { /* event.getRegistry().register(new ItemBlock(Blocks.myBlock).setRegistryName(MOD_ID, "myBlock")); event.getRegistry().register(new MySpecialItem().setRegistryName(MOD_ID, "mySpecialItem")); */ } /** * Listen for the register event for creating custom blocks */ @SubscribeEvent public static void addBlocks(RegistryEvent.Register<Block> event) { /* event.getRegistry().register(new MySpecialBlock().setRegistryName(MOD_ID, "mySpecialBlock")); */ } } /* EXAMPLE ITEM AND BLOCK - you probably want these in separate files public static class MySpecialItem extends Item { } public static class MySpecialBlock extends Block { } */ }

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.