Everything posted by yazigegeda
-
[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?
-
Player resource pack?
Can you tell me how to do it? Is there any sample code?
-
Player resource pack?
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!
-
Death?
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
-
Forge Mod Skin?
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?
-
Can the client install the bukkit plugin?
Are there any Mods that support the installation of the Bukkit plugin? Or other methods? help me!
-
[1.15.2] Open to Lan Event?
Thank you for the reply! I think I know
-
[1.15.2] Open to Lan Event?
不要让端口是随机的,自己定制它... The other is how do I write "FMLServerStartingEvent" when I press this button
-
[1.15.2] Open to Lan Event?
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
-
[1.15.2] Open to Lan Event?
-
[1.15.2] Open to Lan Event?
IPS spam blocked by CleanTalk.