
yazigegeda
Members-
Posts
27 -
Joined
-
Last visited
Everything posted by yazigegeda
-
Do you know what this event is called in fabric? Or there is no such incident?
-
-
[1.14.4] Which event is executed once after entering the map?
yazigegeda replied to yazigegeda's topic in Modder Support
@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! ! -
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?
yazigegeda replied to yazigegeda's topic in Modder Support
Okay, I have repaired the picture. See if you can see it -
-
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
-
Can you tell me the event triggered by this death? @SubscribeEvent public void deathe(DeatheEvent event){ ........ }
-
How to make a mod for integrated server
-
I have read it, but it doesn’t have what I want (notes other than basic notes)
-
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?
-
-
Can you tell me how to do it? Is there any sample code?
-
Using bukkit or other servers that can load plug-ins can easily determine whether there is a choice of "Yes" or "No": if( event.getStatus() != ....SUCCESSFULLY_LOADED ){ //The player failed to load the texture pack correctly } But now it’s Forge mod! What should i do? please help me!
-
public class GuiOpenEvent_ { @SubscribeEvent public void GuiOpenEvent(GuiOpenEvent e){ if(e.getGui() instanceof GuiGameOver){ MinecraftServer server =; //System.out.println(server.getServer().getMaxPlayers()); //System.out.println("aaaaa"); } } } Can you tell me which is the death? What I wrote above can only be used by yourself, others cannot use it
-
https://www.spigotmc.org/resources/skinsrestorer.2124/ The above URL is the server plugin's display skin? How did he achieve it? This is not a Mod, it is a plug-in. Players can change the player's skin on the server at any time without installing it. How? I think Forge Mod can also be achieved?
-
Are there any Mods that support the installation of the Bukkit plugin? Or other methods? help me!
-
Thank you for the reply! I think I know
-
不要让端口是随机的,自己定制它... The other is how do I write "FMLServerStartingEvent" when I press this button
-
Implementation and server-side custom port "server.properties" Can it be done? I want to make the client the same server.properties function as the server
-
-