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.

Checkium

Members
  • Joined

  • Last visited

Everything posted by Checkium

  1. Seems that it works fine on singleplayer
  2. @Draco18sThat was a test, even after frame declaration it doesn't work.
  3. @tazdevil971There's a missing "server.cfg" also in NEI
  4. @tazdevil971That could also be a problem, and after that one got fixed the new one started crashing, could we send us the new crash?
  5. Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\gugli\AppData\Roaming\.minecraft\config\NEI\client.cfg (Impossibile eseguire l'operazione specificata su un file la cui sezione mappata dall'utente è aperta) at codechicken.lib.config.ConfigFile.saveConfig(ConfigFile.java:98) at codechicken.lib.config.ConfigTagParent.setNewLineMode(ConfigTagParent.java:82) at codechicken.nei.NEIClientConfig.setDefaults(NEIClientConfig.java:64) at codechicken.nei.NEIClientConfig.<clinit>(NEIClientConfig.java:56) ... 43 more Caused by: java.io.FileNotFoundException: C:\Users\gugli\AppData\Roaming\.minecraft\config\NEI\client.cfg (Impossibile eseguire l'operazione specificata su un file la cui sezione mappata dall'utente è aperta) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:213) at java.io.FileOutputStream.<init>(FileOutputStream.java:162) at java.io.PrintWriter.<init>(PrintWriter.java:263) at codechicken.lib.config.ConfigFile.saveConfig(ConfigFile.java:96) ... 46 more There are NEI configs missing. wich is causing the crash.
  6. I'm trying to make a JFrame that will log all players kills, but the LivingDeathEvent is not firing. Main class: package me.checkium.pvplog; import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.living.LivingDeathEvent; 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.eventhandler.SubscribeEvent; @Mod(modid = ExampleMod.MODID, version = ExampleMod.VERSION) public class PvPLog { public static final String MODID = "pvplog"; public static final String VERSION = "1.0"; JFrame frame; @EventHandler public void init(FMLInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new EventKill(frame)); frame = new JFrame(); frame.getContentPane().setLayout(new FlowLayout()); frame.setVisible(true); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.setSize(500, 500); System.out.println("Loaded"); } } EventKill: package me.checkium.pvplog; import javax.swing.JFrame; import javax.swing.JLabel; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class EventKill { JFrame frame; public EventKill(JFrame framee) { frame = framee; } @SubscribeEvent public void kill(LivingDeathEvent e) { System.out.println("Event"); if (e.getSource().getEntity() instanceof EntityPlayer && e.getEntity() instanceof EntityPlayer) { System.out.println("Player"); JLabel label = new JLabel(e.getSource().getEntity().getName() + " killed " + e.getEntity().getName()); frame.add(label); } } }

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.