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.

TheJ-max04

Members
  • Joined

  • Last visited

Everything posted by TheJ-max04

  1. Here's the only piece of code that actually references the logger: package OurMod.common; import java.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.passive.EntityCow; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.event.entity.living.LivingDropsEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; 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.registry.GameRegistry; import org.apache.logging.log4j.Logger; import OurMod.common.client.ClientProxy; @Mod(modid = OurMod.MODID, name = OurMod.NAME, version = OurMod.VERSION) public class OurMod { public static final String MODID = "ourmod"; public static final String NAME = "Our Mod"; public static final String VERSION = "alpha 1"; public static Logger logger; public static final String CLIENT = "OurMod.common.client.ClientProxy"; public static final String SERVER = "OurMod.common.client.ServerProxy"; @SidedProxy(clientSide = CLIENT, serverSide = SERVER) public static IProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { logger = event.getModLog(); proxy.preInit(event); } @EventHandler public void init(FMLInitializationEvent event) { proxy.init(event); } @EventHandler public void postInit(FMLPostInitializationEvent event) { proxy.postInit(event); } } I have lots of other files, but they are all very surface level stuff. I'm thinking there must be a problem with my setup.
  2. I'd be happy to, but I assure you, the issue was there from the moment I got forge running in eclipse, even when I hadn't set up a mod.
  3. I've set up my workspace, and I've started making a mod, and even though the game functions fine, the logger stops working shortly after starting up, which is a problem, as it's a pretty essential part of my debugging process. A transcript of the relevant parts of the log follows: [12:10:09] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:10:09] [main/INFO]: Detected deobfuscated environment, loading log configs for colored console logs. 2018-11-02 12:10:09,638 main ERROR Error processing element LoggerNamePatternSelector ([PatternLayout: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,639 main ERROR Error processing element TerminalConsole ([Appenders: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,640 main ERROR Error processing element LoggerNamePatternSelector ([PatternLayout: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,655 main ERROR Unable to locate appender "Console" for logger config "root" 2018-11-02 12:10:09,874 main ERROR Error processing element LoggerNamePatternSelector ([PatternLayout: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,875 main ERROR Error processing element TerminalConsole ([Appenders: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,875 main ERROR Error processing element LoggerNamePatternSelector ([PatternLayout: null]): CLASS_NOT_FOUND 2018-11-02 12:10:09,883 main ERROR Unable to locate appender "Console" for logger config "root" I'm not really sure where to look to fix this, so I apologise if resources to solve this problem already exist.
  4. I would like to have custom dispenser entities so that if one of my Items is getting launched out of a dispenser, it will call that method in my Item, giving me a position to either return false(and have the item launched) or launch a custom entity and return true.

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.