-
[1.14.4] Fabric Event?
Do you know what this event is called in fabric? Or there is no such incident?
-
[1.14.4] Fabric Event?
-
[1.14.4] Which event is executed once after entering the map?
@SubscribeEvent public void onjon(PlayerLoggedInEvent e) { Minecraft mc = Minecraft.getInstance(); mc.getIntegratedServer().shareToLAN(GameType.SURVIVAL, true, 25565); ITextComponent itextcomponent = new TranslationTextComponent("本地游戏已在端口"+Minecraft.getInstance().getIntegratedServer().getServerPort()+"上开启 "); mc.ingameGUI.getChatGUI().printChatMessage(itextcomponent); } Enter the map : The game crashes : AL lib: (EE) alc_cleanup: 1 device not closed This event doesn't work. Same as FMLServerStartingEvent! !
-
[1.14.4] Which event is executed once after entering the map?
private long i; @SubscribeEvent public void onstop(FMLServerStoppedEvent e) { i=0; } @SubscribeEvent public void onDeath(RenderWorldLastEvent e) { i++; if(i==1) { Minecraft mc = Minecraft.getInstance(); mc.getIntegratedServer().shareToLAN(GameType.ADVENTURE, false, 25565); ITextComponent itextcomponent = new TranslationTextComponent("本地游戏已在端口"+Minecraft.getInstance().getIntegratedServer().getServerPort()+"上开启 "); mc.ingameGUI.getChatGUI().printChatMessage(itextcomponent); } } This is the way I currently think of , Since RenderWorldLastEvent is rendering the world all the time, I can only do this. Can you provide other events that are executed only once after entering the map?
-
[1.14.4] Setting the server port has no effect?
Okay, I have repaired the picture. See if you can see it
-
[1.14.4] Setting the server port has no effect?
-
[1.14.4] Can forge mod implement the "hat" function of bukkit's ess plug-in?
I want to implement this function in forge
-
[1.14.4] Can forge mod implement the "hat" function of bukkit's ess plug-in?
I want to make this mod by myself
-
[1.14.4] Can forge mod implement the "hat" function of bukkit's ess plug-in?
What should i do? help me!
-
Get Compound Tag name?
EntityPlayerMP p = (EntityPlayerMP)s; NBTTagCompound PlayerPersisted = getPlayerNBTTagCompound.getPlayerNBTTagCompoundA(p); if(!PlayerPersisted.hasKey("home")) {PlayerPersisted.setTag("home", new NBTTagCompound());} NBTTagCompound home = PlayerPersisted.getCompoundTag("home"); ........ System.out.println(stringname); //Console output: //123 //123_1 //...... as the picture shows Get the name of the tag
-
[1.14.4] Player death event ?
Can you tell me the event triggered by this death? @SubscribeEvent public void deathe(DeatheEvent event){ ........ }
-
[1.14.4] @Mod problem?
How to make a mod for integrated server
-
[1.14.4] @Mod problem?
I have read it, but it doesn’t have what I want (notes other than basic notes)
-
[1.14.4] @Mod problem?
What I want to make is an integrated server mod. If this comment is added, the player can enter the server, otherwise it will prompt that the mod is not installed. . But 1.14.4 does not have this comment at all. What should I do?
-
[1.14.4] @Mod problem?
IPS spam blocked by CleanTalk.