Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Show GUI when Inventory is open


Oen44
 Share

Recommended Posts

Hi,

What's the best way to open custom GUI when player opens inventory? I don't want to replace inventory GUI but add some text on left side.

Tried player.openGui on GuiOpenEvent but nothing is displayed.

@SubscribeEvent
public void OnGuiOpen(GuiOpenEvent event) {
	if(event.getGui() != null && event.getGui() instanceof GuiInventory) {
		EntityPlayer player = Minecraft.getMinecraft().player;
			
		if(!player.capabilities.isCreativeMode) {
			player.openGui(Main.instance, GuiHandler.INV_GUI, player.getEntityWorld(), player.getPosition().getX(), player.getPosition().getY(), player.getPosition().getZ());
		}
	}
}

 

GuiHandler

public class GuiHandler implements IGuiHandler {
	public static final int TEST_GUI = 0;
	public static final int INV_GUI = 1;

	@Override
	public Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
		return null;
	}

	@Override
	public Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z) {
		switch (id) {

		case TEST_GUI:
			return new TestGUI();
			
		case INV_GUI:
			return new InvGUI();

		}

		return null;
	}
}

 

InvGUI

@SideOnly(Side.CLIENT)
public class InvGUI extends Gui {
	
	public InvGUI()
	{
		super();
	}
	
	@SubscribeEvent
	public void onRenderOverlay(RenderGameOverlayEvent.Pre event)
	{
	}

	@SubscribeEvent
	public void onRenderOverlayText(RenderGameOverlayEvent.Text event) {
		ScaledResolution sr = event.getResolution();
		EntityPlayer player = Minecraft.getMinecraft().player;

		if (!player.capabilities.isCreativeMode) {
			String health = (int) player.getHealth() + " / " + (int) player.getMaxHealth();

			GL11.glPushMatrix();
			GL11.glScalef(1.0F, 1.0F, 1.0F);
			Minecraft.getMinecraft().fontRenderer.drawStringWithShadow(
					health,
					0,
					0,
					0xFFFFFF);
			GL11.glPopMatrix();
		}
	}

}

 

GUI works if displayed on button press or when player joins game. So there is nothing wrong.

Edited by Oen44
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Here is a list with all I use on server and client: -----------------------------------SERVER-------------------------------------- ||                        || \/                        \/ '[1.16.X-1.0.10] Dragon Mounts Legacy.jar'                frozenup-1.0.1.jar  3dSkinLayers-forge-1.1.0.jar                             ftb-backups-2.1.2.2.jar  abnormals_core-1.16.5-3.3.1.jar                          ftb-chunks-forge-1605.3.2-build.115.jar  abnormals_delight-1.16.5-1.2.1.jar                       ftb-library-forge-1605.3.4-build.90.jar  Adorn-1.14.1+1.16.5-forge.jar                            ftb-quests-forge-1605.3.6-build.76.jar  AI-Improvements-1.16.5-0.4.0.jar                         ftb-teams-forge-1605.2.3-build.40.jar  AkashicTome-1.4-16.jar                                   geckolib-forge-1.16.5-3.0.61.jar "Alex's Delight 1.1.3 - Forge 1.16.5.jar"                 goblintraders-1.6.0-1.16.3.jar  alexsmobs-1.12.1.jar                                     goldenhopper-1.2.1-1.16.3.jar  Aquaculture-1.16.5-2.1.21.jar                            Highlighter-1.16.5-1.1.1.jar  Architects-Palette-1.16.4-1.1.5.jar                      HunterIllager-1.16.5-1.4.0.jar  architectury-1.28.48.jar                                 Iceberg-1.16.5-1.0.38.jar  atmospheric-1.16.5-3.1.1.jar                             illagersweararmor-1.0.5.jar  AttributeFix-1.16.5-10.1.3.jar                           immersivecooking-1.0.1.jar  AutoRegLib-1.6-49.jar                                    ImprovedBackpacks-1.6.2.0.jar  autumnity-1.16.5-2.1.2.jar                               incontrol-1.16-5.2.2.jar  Babel-1.0.5.jar                                          infernal-expansion-1.16.5-2.4.0.jar  BadMobs-1.16.5-9.0.5.jar                                'InventoryHud_[1.16.2-1.16.5].forge-3.4.1.jar'  bamboo_blocks-1.16.5-3.0.1.jar                           irregularchef-1.16.5-1.0.1.jar  Bayou-Blues-1.16.5-1.0.5.jar                             item-filters-forge-1605.2.5-build.9.jar  BetterAdvancements-1.16.5-0.1.1.115.jar                  Jade-1.16.4-2.8.1.jar  Better-Badlands-1.16.5-2.0.3.jar                         jei-1.16.5-7.7.1.145.jar  BetterCompatibilityChecker-1.0.7-build.22+mc1.16.5.jar   JEITweaker-1.16.5-1.1.0.49.jar  BetterDungeons-1.16.4-1.2.1.jar                          Kiwi-1.16.5-3.6.1.jar  betterendforge-1.16.5-2.5.jar                            KleeSlabs_1.16.5-9.2.1.jar  BetterMineshafts-Forge-1.16.4-2.0.4.jar                  kotlinforforge-1.16.0-obf.jar  BetterModsButton-v1.0.5-1.16.5-Forge.jar                 kryptonreforged-mc1.16.5_v1.0.0.jar  betternether_reforged-1.2.jar                            lazydfu-0.1.3.jar  BetterShieldsMC1.16.3-1.2.jar                            MorePaths-1.16.1-1.3.2.jar  BetterStrongholds-1.16.4-1.2.1.jar                       morevillagers-FORGE-1.16.5-1.5.5.jar  Blocks+-1.16.5-1.2.jar                                   MouseTweaks-2.14-mc1.16.2.jar  blue_skies-1.16.5-1.1.3.jar                              mowziesmobs-1.5.19.jar  Bookshelf-Forge-1.16.5-10.4.31.jar                      'Nature Expansion1.4.1.jar'  Bountiful-1.16.4-3.3.1.jar                               NaturesCompass-1.16.5-1.9.1-forge.jar  buzzier_bees-1.16.5-3.0.3.jar                            neapolitan-1.16.5-2.2.1.jar  byg-1.3.5.jar                                            nethers_delight-2.1.jar  caelus-forge-1.16.5-2.1.3.2.jar                         'NourishedEndV6.1 Backport.jar'  campful-1.16.5-3.1.0.jar                                 NourishedNetherV10ProperBackport.jar  carryon-1.16.5-1.15.5.22.jar                             obfuscate-0.6.2-1.16.3.jar  Cataclysm-0.11.jar                                       omnis-1.16.5-1.1.2.3.jar  catalogue-1.5.0-1.16.5.jar                               OSV-Forge-7.5.jar  CatLib-Forge-1.12.jar                                    OuterEnd-0.2.14.jar  cavebiomeapi-1.16.5-1.4.2.jar                            outvoted-1.16.5-1.2.4.jar  cavesandcliffs-1.16.5-7.2.0.jar                          overloadedarmorbar-5.1.0.jar  CavesCliffsBackportAdditions2.58.jar                     paintings-1.16.4-7.0.0.1.jar  charm-forge-1.16.5-2.3.2.jar                             Patchouli-1.16.4-53.2.jar  chocolate-1.3.0-1.16.4.jar                               Paxi-Forge-1.16.4-1.0.jar  citadel-1.8.1-1.16.5.jar                                 personality-1.16.5-1.0.3.jar  cleancut-mc1.16-2.2-forge.jar                            PickUpNotifier-v1.2-1.16.3.jar  ClientTweaks_1.16.3-5.3.0.jar                            polymorph-forge-1.16.5-0.39.jar  cloth-config-4.13.49-forge.jar                           PuzzlesLib-v1.0.15-1.16.5-Forge.jar  Clumps-6.0.0.27.jar                                      Quark-r2.4-321.jar  CNB-1.16.3_5-1.2.11.jar                                  randompatches-2.4.4-forge.jar  collective-1.16.5-3.8.jar                                repurposed_structures_forge-3.4.7+1.16.5.jar  combustivefishing-forge-1.16.3-4.0.0.1.jar               RevampedWolf-1.16.4-0.7.1.jar  comforts-forge-1.16.5-4.0.1.3.jar                        RoadRunner-mc1.16.5-1.4.0.jar  ConfigMenusForge-v1.2.0-1.16.5-Forge.jar                 savageandravage-1.16.5-3.2.0.jar  Controlling-7.0.0.28.jar                                 selene-1.16.5-1.9.0.jar  copperpot-1.16.5-1.2.0.jar                               SereneSeasons-1.16.5-4.0.1.123-universal.jar  corpse-1.16.5-1.0.6.jar                                  simpleshops-1.1.1.jar  CraftTweaker-1.16.5-7.1.2.489.jar                        SimpleStorageNetwork-1.16.5-1.5.1.jar  create-mc1.16.5_v0.3.2g.jar                              skinned_lanterns-1.16.5-1.3.1.jar  cuneiform-1.16.3-1.2.5.jar                               spark-forge.jar  curioofundying-forge-1.16.5-5.2.0.0.jar                  stalwart-dungeons-1.16.5-1.1.7.jar  curios-forge-1.16.5-4.0.5.3.jar                          stoneholm-1.2.2.jar  curiouselytra-forge-1.16.5-4.0.2.4.jar                   strawgolem-1.16-1.9.jar  CustomStartingGear-1.16.5-2.0.3-universal.jar            structure_gel-1.16.5-1.7.8.jar  darkerdepths-1.16.5-1.1.4.jar                            sulfuric-1.1.jar  DarkPaintings-1.16.5-6.0.10.jar                          supplementaries-1.16.5-0.18.0.jar  decorative_blocks-1.16.4-1.7.2.jar                      'Talpm 1.0.0 1.16.5.jar'  decorative_blocks_abnormals-1.2.jar                      terraincognita-1.16.3-1.7.1.1.jar  deepdark_4.2.jar                                        'TheAbyss2 2.0.0-4 1.16.5.jar'  differentiate-1.16.5-0.5.3.jar                           the-conjurer-1.16.4-1.0.13.jar  DungeonsArise-1.16.5-2.1.49-beta.jar                     TinySkeletons-v1.0.1-1.16.5-Forge.jar  dungeons_mobs-1.16.5-1.0.10.jar                          Tips-1.16.5-4.0.15.jar  dungeons_plus-1.16.5-1.1.5.jar                           torchmaster-2.3.8.jar  dynviewdist-2.0.jar                                      totw_additions-1.1.0.jar  earthmobsmod-1.16.4-0.4.2.jar                            toughnessbar-6.1.jar  EasyMagic-v1.0.4-1.16.5.jar                              towers_of_the_wild-1.16.3-2.1.0.1.jar  elevatorid-1.16.5-1.7.13.jar                             TradingPost-v1.0.2-1.16.5.jar  EnchantmentDescriptions-1.16.5-7.0.18.jar                travelers_index-1.16.4-1.0.2.jar  enchantwithmob-1.16.5-1.5.2.jar                          TravelersTitles-1.16.4-1.5.jar  endergetic-1.16.4-3.0.0.jar                              tumbleweed-1.16-0.4.9.jar  enhancedcelestials-2.0.9-1.16.5.jar                      twilightforest-1.16.5-4.0.870-universal.jar  Enhanced-Mushrooms-1.16.5-3.0.9.jar                      upgrade_aquatic-1.16.5-3.1.2.jar  environmental-1.16.5-1.1.1.jar                          'Upgraded Netherite 1.10.1.jar'  EquipmentCompare-1.16.5-1.2.7.jar                        veinmining-forge-1.16.5-0.16.jar  extendedmushrooms-1.6.1-1.16.5+.jar                      village-employment-1.16.5-1.4.1.jar  extraboats-1.16.5-2.1.1.jar                              villagernames_1.16.5-3.4.jar  FallingTree-1.16.5-2.11.5.jar                            villagertools-1.16.5-1.0.2.jar  FarmersDelight-1.16.5-0.5.4.jar                          VisualWorkbench-v1.1.0-1.16.5.jar  farmersdelightintegration-1.16.5-1.0.3.jar               voidtotem-1.16.5-1.4.0.jar  farmersdelightintegrations-1.16.5-1.2.jar                wandering-bag-1.16.5-1.0.3.jar  fastbenchminusreplacement-1.4.jar                        Waystones_1.16.5-7.6.4.jar  fastfurnaceminusreplacement-1.1-1.16.3.jar               what_did_you_vote_for-1.16.5-1.0.5.jar  FastLeafDecay-v25.2.jar                                  Xaeros_Minimap_22.1.0_Forge_1.16.5.jar  fd_cookbook-2.0.jar                                      XaerosWorldMap_1.20.0_Forge_1.16.5.jar  ferritecore-2.1.0-forge.jar                              xptome-1.16.5-v2.1.2.jar  flywheel-1.16-0.2.5.jar                                  YungsApi-1.16.4-Forge-13.jar --------------------------------------------CLIENT---------------------------------- abnormals_core-1.16.5-3.3.1.jar Bookshelf-Forge-1.16.5-10.4.31.jar Bountiful-1.16.4-3.3.1.jar buzzier_bees-1.16.5-3.0.3.jar caelus-forge-1.16.5-2.1.3.2.jar campful-1.16.5-3.1.0.jar carryon-1.16.5-1.15.5.22.jar catalogue-1.5.0-1.16.5.jar CatLib-Forge-1.12.jar cavebiomeapi-1.16.5-1.4.2.jar cavesandcliffs-1.16.5-7.2.0.jar CavesCliffsBackportAdditions2.58.jar charm-forge-1.16.5-2.3.2.jar chocolate-1.3.0-1.16.4.jar citadel-1.8.1-1.16.5.jar cleancut-mc1.16-2.2-forge.jar ClientTweaks_1.16.3-5.3.0.jar cloth-config-4.13.49-forge.jar Clumps-6.0.0.27.jar collective-1.16.5-3.8.jar combustivefishing-forge-1.16.3-4.0.0.1.jar comforts-forge-1.16.5-4.0.1.3.jar ConfigMenusForge-v1.2.0-1.16.5-Forge.jar Controlling-7.0.0.28.jar copperpot-1.16.5-1.2.0.jar corpse-1.16.5-1.0.6.jar CraftTweaker-1.16.5-7.1.2.489.jar create-mc1.16.5_v0.3.2g.jar CNB-1.16.3_5-1.2.11.jar cuneiform-1.16.3-1.2.5.jar curioofundying-forge-1.16.5-5.2.0.0.jar curios-forge-1.16.5-4.0.5.3.jar curiouselytra-forge-1.16.5-4.0.2.4.jar CustomStartingGear-1.16.5-2.0.3-universal.jar DarkPaintings-1.16.5-6.0.10.jar darkerdepths-1.16.5-1.1.4.jar deepdark_4.2.jar decorative_blocks-1.16.4-1.7.2.jar decorative_blocks_abnormals-1.2.jar differentiate-1.16.5-0.5.3.jar [1.16.X-1.0.10] Dragon Mounts Legacy.jar drippyloadingscreen_forge_1.4.2_MC_1.16.2-1.16.5.jar dungeons_mobs-1.16.5-1.0.10.jar dungeons_plus-1.16.5-1.1.5.jar DynamicSurroundings-1.16.5-4.0.5.0.jar dynviewdist-2.0.jar earthmobsmod-1.16.4-0.4.2.jar EasyMagic-v1.0.4-1.16.5.jar enchantwithmob-1.16.5-1.5.2.jar EnchantmentDescriptions-1.16.5-7.0.18.jar enhancedcelestials-2.0.9-1.16.5.jar Enhanced-Mushrooms-1.16.5-3.0.9.jar environmental-1.16.5-1.1.1.jar EquipmentCompare-1.16.5-1.2.7.jar extendedmushrooms-1.6.1-1.16.5+.jar extraboats-1.16.5-2.1.1.jar Fallingleaves-1.16.3-1.2.4.jar FallingTree-1.16.5-2.11.5.jar FarmersDelight-1.16.5-0.5.4.jar farmersdelightintegrations-1.16.5-1.2.jar fd_cookbook-2.0.jar farmersdelightintegration-1.16.5-1.0.3.jar fastfurnaceminusreplacement-1.1-1.16.3.jar FastLeafDecay-v25.2.jar fastbenchminusreplacement-1.4.jar ferritecore-2.1.0-forge.jar frozenup-1.0.1.jar ftb-backups-2.1.2.2.jar ftb-chunks-forge-1605.3.2-build.115.jar ftb-library-forge-1605.3.4-build.90.jar ftb-quests-forge-1605.3.6-build.76.jar ftb-teams-forge-1605.2.3-build.40.jar goblintraders-1.6.0-1.16.3.jar goldenhopper-1.2.1-1.16.3.jar guardvillagers-1.16.5.1.2.6.jar HunterIllager-1.16.5-1.4.0.jar Iceberg-1.16.5-1.0.38.jar illagersweararmor-1.0.5.jar immersivecooking-1.0.1.jar ImprovedBackpacks-1.6.2.0.jar incontrol-1.16-5.2.2.jar infernal-expansion-1.16.5-2.4.0.jar InventoryHud_[1.16.2-1.16.5].forge-3.4.1.jar item-filters-forge-1605.2.5-build.9.jar Highlighter-1.16.5-1.1.1.jar Jade-1.16.4-2.8.1.jar JEIEnchantmentInfo-1.16.4-1.2.1.jar jei-professions-1.0.0-1.16.4.jar JEITweaker-1.16.5-1.1.0.49.jar jeed-1.16.5-1.6.jar jei-1.16.5-7.7.1.145.jar JEPB-1.0.0.jar JustEnoughProfessions-1.16.5-1.2.2.jar JustEnoughResources-1.16.5-0.12.1.133.jar Kiwi-1.16.5-3.6.1.jar KleeSlabs_1.16.5-9.2.1.jar konkrete_forge_1.3.3_MC_1.16.2-1.16.5.jar kotlinforforge-1.16.0-obf.jar kryptonreforged-mc1.16.5_v1.0.0.jar Cataclysm-0.11.jar lazydfu-0.1.3.jar magnesium-1.5.jar dynamiclightsreforged-mc1.16.5_v1.0.1.jar magnesium_extras-mc1.16.5_v1.3.1.jar morevillagers-FORGE-1.16.5-1.5.5.jar MorePaths-1.16.1-1.3.2.jar MouseTweaks-2.14-mc1.16.2.jar Nature Expansion1.4.1.jar NaturesCompass-1.16.5-1.9.1-forge.jar neapolitan-1.16.5-2.2.1.jar nethers_delight-2.1.jar NourishedEndV6.1 Backport.jar NourishedNetherV10ProperBackport.jar obfuscate-0.6.2-1.16.3.jar byg-1.3.5.jar omnis-1.16.5-1.1.2.3.jar elevatorid-1.16.5-1.7.13.jar OSV-Forge-7.5.jar outvoted-1.16.5-1.2.4.jar overloadedarmorbar-5.1.0.jar paintings-1.16.4-7.0.0.1.jar Patchouli-1.16.4-53.2.jar Paxi-Forge-1.16.4-1.0.jar personality-1.16.5-1.0.3.jar PickUpNotifier-v1.2-1.16.3.jar polymorph-forge-1.16.5-0.39.jar PuzzlesLib-v1.0.15-1.16.5-Forge.jar Quark-r2.4-321.jar randompatches-2.4.4-forge.jar repurposed_structures_forge-3.4.7+1.16.5.jar RevampedWolf-1.16.4-0.7.1.jar RoadRunner-mc1.16.5-1.4.0.jar savageandravage-1.16.5-3.2.0.jar selene-1.16.5-1.9.0.jar SereneSeasons-1.16.5-4.0.1.123-universal.jar simple-rpc-1.16.5-2.7.1.jar simpleshops-1.1.1.jar SimpleStorageNetwork-1.16.5-1.5.1.jar 3dSkinLayers-forge-1.1.0.jar skinned_lanterns-1.16.5-1.3.1.jar spark-forge.jar stalwart-dungeons-1.16.5-1.1.7.jar stoneholm-1.2.2.jar strawgolem-1.16-1.9.jar structure_gel-1.16.5-1.7.8.jar sulfuric-1.1.jar terraincognita-1.16.3-1.7.1.1.jar Talpm 1.0.0 1.16.5.jar the-conjurer-1.16.4-1.0.13.jar endergetic-1.16.4-3.0.0.jar irregularchef-1.16.5-1.0.1.jar OuterEnd-0.2.14.jar twilightforest-1.16.5-4.0.870-universal.jar TinySkeletons-v1.0.1-1.16.5-Forge.jar Tips-1.16.5-4.0.15.jar torchmaster-2.3.8.jar totw_additions-1.1.0.jar towers_of_the_wild-1.16.3-2.1.0.1.jar TradingPost-v1.0.2-1.16.5.jar travelers_index-1.16.4-1.0.2.jar TravelersTitles-1.16.4-1.5.jar tumbleweed-1.16-0.4.9.jar upgrade_aquatic-1.16.5-3.1.2.jar veinmining-forge-1.16.5-0.16.jar villagertools-1.16.5-1.0.2.jar village-employment-1.16.5-1.4.1.jar villagernames_1.16.5-3.4.jar VisualWorkbench-v1.1.0-1.16.5.jar voidtotem-1.16.5-1.4.0.jar wandering-bag-1.16.5-1.0.3.jar Waystones_1.16.5-7.6.4.jar what_did_you_vote_for-1.16.5-1.0.5.jar DungeonsArise-1.16.5-2.1.49-beta.jar Xaeros_Minimap_22.1.0_Forge_1.16.5.jar XaerosWorldMap_1.20.0_Forge_1.16.5.jar xptome-1.16.5-v2.1.2.jar YungsApi-1.16.4-Forge-13.jar BetterDungeons-1.16.4-1.2.1.jar BetterMineshafts-Forge-1.16.4-2.0.4.jar BetterStrongholds-1.16.4-1.2.1.jar
    • nvm tried it with jre1.8 worked 
    • [26Jan2022 15:37:29.873] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 35.1.37, --fml.mcpVersion, 20201102.104115, --fml.mcVersion, 1.16.4, --fml.forgeGroup, net.minecraftforge] [26Jan2022 15:37:29.883] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 11.0.14 by Oracle Corporation [26Jan2022 15:37:30.796] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [26Jan2022 15:37:30.921] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.2 Source=file:/C:/Users/Monke/AppData/Roaming/.minecraft/SERVERS/sf3/libraries/org/spongepowered/mixin/0.8.2/mixin-0.8.2.jar Service=ModLauncher Env=SERVER [26Jan2022 15:37:31.771] [main/INFO] [STDERR/]: [jdk.nashorn.api.scripting.NashornScriptEngine:<init>:143]: Warning: Nashorn engine is planned to be removed from a future JDK release [26Jan2022 15:37:32.530] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, .] [26Jan2022 15:37:32.684] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: java.lang.NoSuchMethodError: sun.security.util.ManifestEntryVerifier.<init>(Ljava/util/jar/Manifest;)V [26Jan2022 15:37:32.685] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.SecureJarHandler.createCodeSource(SecureJarHandler.java:66) [26Jan2022 15:37:32.685] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:275) [26Jan2022 15:37:32.686] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [26Jan2022 15:37:32.687] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [26Jan2022 15:37:32.688] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) [26Jan2022 15:37:32.688] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.lang.Class.forName0(Native Method) [26Jan2022 15:37:32.690] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.lang.Class.forName(Class.java:398) [26Jan2022 15:37:32.691] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at net.minecraftforge.fml.loading.FMLServerLaunchProvider.lambda$launchService$0(FMLServerLaunchProvider.java:51) [26Jan2022 15:37:32.691] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [26Jan2022 15:37:32.692] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [26Jan2022 15:37:32.692] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [26Jan2022 15:37:32.693] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [26Jan2022 15:37:32.694] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [26Jan2022 15:37:32.695] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at net.minecraftforge.server.ServerMain$Runner.runLauncher(ServerMain.java:63) [26Jan2022 15:37:32.695] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at net.minecraftforge.server.ServerMain$Runner.access$100(ServerMain.java:60) [26Jan2022 15:37:32.695] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at net.minecraftforge.server.ServerMain.main(ServerMain.java:57)
    • I also getting issues with installing Forge serve i also try to remove 5 time java  nd reinstall when i select forge server they said Failed to download version manifest, can not find server jar URL. how i fix this JVM info: Eclipse Adoptium - 17.0.1 - 17.0.1+12 java.net.preferIPv4Stack=true Found java version 17.0.1 <html><a href='https://www.creeperhost.net/'>Data kindly mirrored by CreeperHost</a></html> Considering minecraft server jar javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target     at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)     at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:370)     at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:313)     at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:308)     at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1357)     at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1232)     at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1175)     at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:396)     at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:480)     at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:458)     at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:200)     at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)     at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1500)     at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1415)     at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:450)     at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:421)     at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)     at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:183)     at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1665)     at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)     at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529)     at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308)     at net.minecraftforge.installer.DownloadUtils.getConnection(DownloadUtils.java:243)     at net.minecraftforge.installer.DownloadUtils.downloadManifest(DownloadUtils.java:307)     at net.minecraftforge.installer.json.Util.getVanillaVersion(Util.java:73)     at net.minecraftforge.installer.actions.ServerInstall.run(ServerInstall.java:86)     at net.minecraftforge.installer.InstallerPanel.run(InstallerPanel.java:423)     at net.minecraftforge.installer.SimpleInstaller.launchGui(SimpleInstaller.java:175)     at net.minecraftforge.installer.SimpleInstaller.main(SimpleInstaller.java:147) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target     at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)     at java.base/sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:306)     at java.base/sun.security.validator.Validator.validate(Validator.java:264)     at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)     at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:132)     at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1341)     ... 24 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target     at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)     at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)     at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)     at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)     ... 29 more Failed to download version manifest, can not find server jar URL.    
    • crash report: https://pastebin.com/DAAFEVzq  this is the crash report of my friend, we both start up a forge server 36.2.22, to me works just fine, but to him instantly crashes at start up java i used: adoptium jdk 8 java he used: latest java 8 64 bit and also tried with adoptium jdk 8
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.