-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
well im getting a different crash when trying to create / join worlds. ima go create another topic i guess
-
I have the file, how do i send it to you on the forum
-
Hey there! If you are looking for a new vanilla Minecraft server to play on you can come and check us out. We just started this server to enjoy this awesome game. The welcoming community will probably make you feel right at home with us! Join the Discord: https://discord.gg/pNbZW6KJWn and see if this server is something for you.
-
no, i'm serious. all i did was install optifine from the official optifine website, and all 3 errors vanished, admittedly a new error popped up, but that was because i was using the 1.18.1 version of a mod instead of the 1.18.2 version of that mod.
-
Hi! I am new to Forge modding (not java), and I am trying to build a statistics mod to keep track of things like how many blocks of X type has a player mined, how many times the player have received damage and how much damage has been received, xp obtained... But I am constantly finding the problem of things working on a single player mode but not on multiplayer. Events like PlayerXpEvent.PickupXp are firing only when the server is hosted by the client. I understand this is because this events are handled server side, and I have found workarounds like using the players inventory to keep track of the blocks, but this is very limiting. I was wondering if there was a way to listen to those events also in the client side. I have searched and searched this forum and Google but I only find outdated or dead posts. My code (Really simple): @Mod.EventBusSubscriber(modid = Minestats.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class Events { @SubscribeEvent public static void onItemPickup(final PlayerXpEvent.PickupXp event) { Minestats.saveNewXpValue(event.getOrb().getValue(), new Timestamp(System.currentTimeMillis())); // This just saves it in a JSON file } }
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.