-
[1.15.2] Join the minecraft thread from another thread
No Idea ?
-
[1.15.2] Join the minecraft thread from another thread
A thread that I created to check for my server's information. If I use the screen directly from my thread, minecraft will crash..
-
[1.15.2] Join the minecraft thread from another thread
Well I tried : Minecraft.getInstance().runImmediately(new Runnable() { @Override public void run() { MultiPlayerGui.this.minecraft.displayGuiScreen(new ConnectingScreen(MultiPlayerGui.this, MultiPlayerGui.this.minecraft, server)); } }); And it's really weird... In my console, I receive everything from the server chat. But on my game, it's stuck on loading the terrain infinitely !!! MultiPlayerGui is my custome class but the rest is not.. I don't undersant why O_o
-
[1.15.2] Join the minecraft thread from another thread
So, I have two thread : The first one is the one of minecraft, the second one is async thread that I created to do something on the web. I would like that when the second thread is done, the first thread execute a method ( and not the second thread because minecraft really doesn't like when you use method using another thread). Before the second thread ended, the first thread must continue working. Does anyone have any idea of how to do that please ?
-
[1.15.2] [Solved] Change minecraft server menu
GuiOpenEvent it's never fired when opening the menu, I will look for why EDIT : It works, I swear I thought I already tried it !!!
-
[SOLVED][1.15.2] Underwater Crops
I think FlowingFluid.class and more precisely the method getFlow() At one point, it check getMaterial().blocksMovement()) This basically check if the water can move in. You just have to set blocksMovement to true in your crops I think. Not sure, you have to test
-
[1.15.2] [Solved] Change minecraft server menu
Hello, I'm looking for a way to change some things in the server list (like add a button and other things) My idea was to create a new class which extends "MultiplayerScreen" And then use the InitGuiEvent and override the GUI with mine. But I can't find a way in the event to override the GUI (we only have access to the getter) Does someone know how to solve that ? Thanks ^^
-
[Solved] [1.15.2] Events are not fired
AH it seems that the problem only comes from DifficultyChangeEvent. I don't care about this event, I only used it as a test, it works fine with another event... So yeah my events work
-
[Solved] [1.15.2] Events are not fired
Hi, I really don't understand why my even is never fired... package fr.uiytt.test; import net.minecraftforge.event.DifficultyChangeEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; public class Events { @SubscribeEvent public void test(final DifficultyChangeEvent event) { System.out.println("test1 " + event.getDifficulty().getTranslationKey()); } } I have declared it in my mod main class with : MinecraftForge.EVENT_BUS.register(new Events()); Thanks for your help
-
[1.15.2] How to get my mod config's directory ?
Ok, now that I use toml, how can I manage to detect when a player click on the config button (in the mods list). And how can I show a normal Gui that allows the player to modify it ?
-
[1.15.2] How to get my mod config's directory ?
Why ?
-
[1.15.2] How to get my mod config's directory ?
Thanks, I have another question. If I didn't register a config, How can I get in my Init event the config folder (where every config are store in). I would like to use another storage system way more enjoyable to use and thus I need to know where is the folder where it's supposed to go ^^
-
[1.15.2] How to get my mod config's directory ?
Oh wait, I don't know how the config file work after 1.11, can you link me to any tuto there is on this subject (I didn't found any)
-
[1.15.2] How to get my mod config's directory ?
Hi, I have absolutely no clue about how to get the folder from where my config must be... Do I need to do it manually ? Thanks
-
[1.12.2] ContainerListener for item pickup
;(
IPS spam blocked by CleanTalk.