Jump to content

forge 1.19.2 keeps crashing with error code 1


Ethan_larder

Recommended Posts

[16:16:53] [main/INFO]: ModLauncher running: args [--username, RedRanger10, --version, forge-43.2.0, --gameDir, C:\Users\ethan\curseforge\minecraft\Instances\abc, --assetsDir, C:\Users\ethan\curseforge\minecraft\Install\assets, --assetIndex, 1.19, --uuid, c5d5dadd365c4a75951c9723a2ce1452, --accessToken, ????????, --clientId, ZmUxZDgyMmQtNDIxOC00ZmYxLWEyZGEtNmYwNTBjNTJhMWJi, --xuid, 2535413263101914, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 43.2.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853]
[16:16:53] [main/INFO]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.3 by Microsoft; OS Windows 10 arch amd64 version 10.0
[16:16:53] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/ethan/curseforge/minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2391!/ Service=ModLauncher Env=CLIENT
[16:16:53] [main/INFO]: Found mod file architectury-6.4.62-forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file artifacts-1.19.2-5.0.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file AttributeFix-Forge-1.19.2-17.1.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file badpackets-forge-0.2.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file balm-4.5.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file baubley-heart-canisters-1.19.2-1.1.7.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file Bookshelf-Forge-1.19.2-16.1.11.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file caelus-forge-1.19.2-3.0.0.6.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file ChanceCubes-1.19.2-5.0.2.475.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file charmofundying-forge-6.0.0+1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:53] [main/INFO]: Found mod file Clumps-forge-1.19.2-9.0.0+14.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file collective-1.19.2-5.25.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file CosmeticArmorReworked-1.19.2-v1a.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file curios-forge-1.19.2-5.1.1.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file deeperdarker-forge-1.1.3-forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file dimensional_expansion-0.6.1a.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file DungeonCrawl-1.19-2.3.11.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file DungeonsArise-1.19.2-2.1.54-release.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file easy_villagers-1.19.2-1.0.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file EasyMagic-v4.3.2-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file elytraslot-forge-6.0.0+1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file embellishedenchanting-v1.3.4-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file enchantingcommands_1.19.2-2.5.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file EnchantingInfuser-v4.2.2-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file enchantingrunes-1.19-1.0.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file EnchantmentDescriptions-Forge-1.19.2-13.0.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file expandedstorage-8.0.5+1.19.2-forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file FarmersDelight-1.19-1.2.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file FastLeafDecay-30.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ftb-library-forge-1902.3.10-build.162.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ftb-quests-forge-1902.4.3-build.140.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ftb-teams-forge-1902.2.10-build.76.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file geckolib-forge-1.19-3.1.38.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file goblintraders-1.8.0-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file HammerLib-1.19.2-19.2.39.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file HealthCanisters 1.2.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Iceberg-1.19.2-forge-1.0.49.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Immunity Enchantments 1.0.0 - 1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ImprovableSkills-1.19.2-19.2.6.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ironchest-1.19.2-14.2.7.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file item-filters-forge-1902.2.9-build.46.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file jei-1.19.2-forge-11.4.0.288.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file journeymap-1.19.2-5.9.0beta4-forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file JustEnoughResources-1.19.2-1.2.0.188.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file LegendaryTooltips-1.19.2-1.3.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file levelhearts-1.19.2-2.4.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Life Steal Enchant 1.0.0 - 1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file maenchants-1.19.2-6.0.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file majrusz-library-1.19.2-2.17.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file majruszs-enchantments-1.19.2-1.7.6.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file More Villager Trades 1.0.0 - 1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file morevillagers-forge-1.19-4.0.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file NethersDelight-1.19-3.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file noenchantcap-forge-1.19.2-2.2.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file obscure_api-9-1.19.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file polymorph-forge-0.46.1+1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Prism-1.19.1-1.0.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file productivevillagers-1.0.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file PuzzlesLib-v4.3.12-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file ScalingHealth-1.19.2-7.0.0+6.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file silent-lib-1.19.2-7.0.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file SoL-Carrot-1.19.2-1.14.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file themissingvillages-2.0.0-1.19.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file token-enchanter-1.19.2-1.4.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file TonsOfEnchants-1.19.2-1.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file toolleveling-forge-1.19.2-1.4.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file TradingPost-v4.2.0-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file twilightforest-1.19.2-4.2.1468-universal.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Unique Enchantments Apex-1.19.2-3.0.1.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Unique Enchantments Base-1.19.2-3.0.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Unique Enchantments Battle-1.19.2-3.0.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Unique Enchantments Utils-1.19.2-3.0.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file Unique Enchantments-1.19.2-4.0.2.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file UniversalEnchants-v4.2.9-1.19.2-Forge.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file UnusualEnd1.19_V1.2.7.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file upgradedcore-1.19.2-4.1.0.0-release.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file upgradednetherite-1.19.2-5.1.0.5-release.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file upgradednetherite_items-1.19.2-4.1.0.1-release.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file upgradednetherite_ultimate-1.19.2-4.1.0.2-release.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file villagertools-1.19-1.0.3.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file villagespawnpoint_1.19.2-3.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/INFO]: Found mod file waystones-forge-1.19-11.1.0.jar of type MOD with provider {mods folder locator at C:\Users\ethan\curseforge\minecraft\Instances\abc\mods}
[16:16:54] [main/WARN]: Mod file C:\Users\ethan\curseforge\minecraft\Install\libraries\net\minecraftforge\fmlcore\1.19.2-43.2.0\fmlcore-1.19.2-43.2.0.jar is missing mods.toml file
[16:16:54] [main/WARN]: Mod file C:\Users\ethan\curseforge\minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.19.2-43.2.0\javafmllanguage-1.19.2-43.2.0.jar is missing mods.toml file
[16:16:54] [main/WARN]: Mod file C:\Users\ethan\curseforge\minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.19.2-43.2.0\lowcodelanguage-1.19.2-43.2.0.jar is missing mods.toml file
[16:16:54] [main/WARN]: Mod file C:\Users\ethan\curseforge\minecraft\Install\libraries\net\minecraftforge\mclanguage\1.19.2-43.2.0\mclanguage-1.19.2-43.2.0.jar is missing mods.toml file
[16:16:54] [main/INFO]: Found mod file fmlcore-1.19.2-43.2.0.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found mod file javafmllanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found mod file lowcodelanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found mod file mclanguage-1.19.2-43.2.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found mod file client-1.19.2-20220805.130853-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found mod file forge-1.19.2-43.2.0-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@2d84cb86
[16:16:54] [main/INFO]: Found 5 dependencies adding them to mods collection
[16:16:54] [main/INFO]: Found mod file MixinExtras-0.1.0-rc5.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@7965a51c
[16:16:54] [main/INFO]: Found mod file paragon-forge-1.0.3b-1.19x.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@7965a51c
[16:16:54] [main/INFO]: Found mod file expandability-forge-7.0.0.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@7965a51c
[16:16:54] [main/INFO]: Found mod file container-library-1.19-forge-2.1.0-alpha.12-fat.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@7965a51c
[16:16:54] [main/INFO]: Found mod file spectrelib-forge-0.11.0+1.19.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@7965a51c
 

Link to comment
Share on other sites

That doesn't show any error.

If it is the full log, post a link to the launcher_log.txt after the crash (before you restart the launcher).

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

That doesn't show any forge or mod error either. It doesn't show you starting minecraft.

 

It does contain lots of warnings/errors like:

Quote

[Warning: 2022-12-10 19:40:53.1260205: GameVersionManager.cpp(365)] forge-40.0.48.json.libraries[16].clientreq: Unknown key

[Error: 2022-12-10 19:40:53.1260395: GameVersionManager.cpp(361)] forge-40.0.48.json.libraries[16].natives: Expected object

[Error: 2022-12-10 19:40:53.1260683: GameVersionManager.cpp(361)] forge-40.0.48.json.libraries[16].rules: Expected array

[Warning: 2022-12-10 19:40:53.1260920: GameVersionManager.cpp(365)] forge-40.0.48.json.libraries[16].serverreq: Unknown key

[Warning: 2022-12-10 19:40:53.1261062: GameVersionManager.cpp(365)] forge-40.0.48.json.libraries[17].clientreq: Unknown key

[Error: 2022-12-10 19:40:53.1261251: GameVersionManager.cpp(361)] forge-40.0.48.json.libraries[17].natives: Expected object [Error: 2022-12-10 19:40:53.1261535

There are many others.

 

This suggests your launcher configuration files are corrupted/invalid?

Since it looks like you are using curseforge, you should ask them how to fix it.

https://support.curseforge.com/en/support/home

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I am creating a mod that adds new armor sets and changes how armor sets are crafted. When the player interacts with the block it fails to open the gui, but I get no error or stacktrace. All of my registration classes are being called correctly. LightArmorBenchScreen's constructor, render, and renderbg methods are not being called at all. Here is the code: package net.leeveygames.celestial.blocks.custom; import net.leeveygames.celestial.Celestial; import net.leeveygames.celestial.blocks.entity.CelestialBlockEntities; import net.leeveygames.celestial.blocks.entity.LightArmorBenchBlockEntity; import net.minecraft.core.BlockPos; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.BaseEntityBlock; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.RenderShape; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityTicker; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.world.phys.BlockHitResult; import net.minecraft.world.phys.shapes.CollisionContext; import net.minecraft.world.phys.shapes.VoxelShape; import net.minecraftforge.network.NetworkHooks; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class LightArmorBenchBlock extends BaseEntityBlock { public static final VoxelShape SHAPE = Block.box(0, 0, 0, 16, 12, 16); public LightArmorBenchBlock(Properties pProperties) { super(pProperties); } @Override public VoxelShape getShape(BlockState pState, BlockGetter pLevel, BlockPos pPos, CollisionContext pContext) { return SHAPE; } @Override public RenderShape getRenderShape(BlockState pState) { return RenderShape.MODEL; } @Override public void onRemove(BlockState pState, Level pLevel, BlockPos pPos, BlockState pNewState, boolean pIsMoving) { if (pState.getBlock() != pNewState.getBlock()) { BlockEntity blockEntity = pLevel.getBlockEntity(pPos); if (blockEntity instanceof LightArmorBenchBlockEntity) { ((LightArmorBenchBlockEntity) blockEntity).drops(); } } super.onRemove(pState, pLevel, pPos, pNewState, pIsMoving); } @NotNull @Override public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHit) { if(pLevel.isClientSide()) return InteractionResult.SUCCESS; BlockEntity be = pLevel.getBlockEntity(pPos); if (be instanceof LightArmorBenchBlockEntity blockEntity) { ServerPlayer player = (ServerPlayer)pPlayer; Celestial.LOGGER.info("Opening Screen."); NetworkHooks.openScreen(player, blockEntity, pPos); } return InteractionResult.CONSUME; } @Nullable @Override public BlockEntity newBlockEntity(BlockPos pPos, BlockState pState) { return new LightArmorBenchBlockEntity(pPos, pState); } @Nullable @Override public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level pLevel, BlockState pState, BlockEntityType<T> pBlockEntityType) { if(pLevel.isClientSide()) { return null; } return createTickerHelper(pBlockEntityType, CelestialBlockEntities.LIGHT_ARMOR_BENCH_BLOCK_ENTITY.get(), (pLevel1, pPos, pState1, pBlockEntity) -> pBlockEntity.tick(pLevel1, pPos, pState1)); } }   package net.leeveygames.celestial.screen; import net.leeveygames.celestial.Celestial; import net.leeveygames.celestial.blocks.CelestialBlocks; import net.leeveygames.celestial.blocks.entity.LightArmorBenchBlockEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.*; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraftforge.common.capabilities.ForgeCapabilities; import net.minecraftforge.items.SlotItemHandler; public class LightArmorBenchMenu extends AbstractContainerMenu { public final LightArmorBenchBlockEntity blockEntity; private final Level level; public LightArmorBenchMenu(int pContainerId, Inventory inv, FriendlyByteBuf extraData) { this(pContainerId, inv, inv.player.level().getBlockEntity(extraData.readBlockPos())); Celestial.LOGGER.info("Creating Light Armor Bench Menu. Client"); } public LightArmorBenchMenu(int pContainerId, Inventory inv, BlockEntity entity) { super(CelestialMenuTypes.LIGHT_ARMOR_BENCH_MENU.get(), pContainerId); Celestial.LOGGER.info("Creating Light Armor Bench Menu. Server"); checkContainerSize(inv, 2); blockEntity = ((LightArmorBenchBlockEntity) entity); this.level = inv.player.level(); addPlayerInventory(inv); addPlayerHotbar(inv); createLightArmorBenchSlots(blockEntity); } private void createLightArmorBenchSlots(LightArmorBenchBlockEntity blockEntity) { Celestial.LOGGER.info("Creating Light Armor Bench Slots."); this.blockEntity.getCapability(ForgeCapabilities.ITEM_HANDLER).ifPresent(iItemHandler -> { this.addSlot(new SlotItemHandler(iItemHandler, 0, 11, 15)); this.addSlot(new SlotItemHandler(iItemHandler, 1, 82, 33)); this.addSlot(new SlotItemHandler(iItemHandler, 2, 133, 33)); }); } // CREDIT GOES TO: diesieben07 | https://github.com/diesieben07/SevenCommons // must assign a slot number to each of the slots used by the GUI. // For this container, we can see both the tile inventory's slots as well as the player inventory slots and the hotbar. // Each time we add a Slot to the container, it automatically increases the slotIndex, which means // 0 - 8 = hotbar slots (which will map to the InventoryPlayer slot numbers 0 - 8) // 9 - 35 = player inventory slots (which map to the InventoryPlayer slot numbers 9 - 35) // 36 - 44 = TileInventory slots, which map to our TileEntity slot numbers 0 - 8) private static final int HOTBAR_SLOT_COUNT = 9; private static final int PLAYER_INVENTORY_ROW_COUNT = 3; private static final int PLAYER_INVENTORY_COLUMN_COUNT = 9; private static final int PLAYER_INVENTORY_SLOT_COUNT = PLAYER_INVENTORY_COLUMN_COUNT * PLAYER_INVENTORY_ROW_COUNT; private static final int VANILLA_SLOT_COUNT = HOTBAR_SLOT_COUNT + PLAYER_INVENTORY_SLOT_COUNT; private static final int VANILLA_FIRST_SLOT_INDEX = 0; private static final int TE_INVENTORY_FIRST_SLOT_INDEX = VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT; // THIS YOU HAVE TO DEFINE! private static final int TE_INVENTORY_SLOT_COUNT = 2; // must be the number of slots you have! @Override public ItemStack quickMoveStack(Player playerIn, int pIndex) { Slot sourceSlot = slots.get(pIndex); if (sourceSlot == null || !sourceSlot.hasItem()) return ItemStack.EMPTY; //EMPTY_ITEM ItemStack sourceStack = sourceSlot.getItem(); ItemStack copyOfSourceStack = sourceStack.copy(); // Check if the slot clicked is one of the vanilla container slots if (pIndex < VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT) { // This is a vanilla container slot so merge the stack into the tile inventory if (!moveItemStackTo(sourceStack, TE_INVENTORY_FIRST_SLOT_INDEX, TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT, false)) { return ItemStack.EMPTY; // EMPTY_ITEM } } else if (pIndex < TE_INVENTORY_FIRST_SLOT_INDEX + TE_INVENTORY_SLOT_COUNT) { // This is a TE slot so merge the stack into the players inventory if (!moveItemStackTo(sourceStack, VANILLA_FIRST_SLOT_INDEX, VANILLA_FIRST_SLOT_INDEX + VANILLA_SLOT_COUNT, false)) { return ItemStack.EMPTY; } } else { System.out.println("Invalid slotIndex:" + pIndex); return ItemStack.EMPTY; } // If stack size == 0 (the entire stack was moved) set slot contents to null if (sourceStack.getCount() == 0) { sourceSlot.set(ItemStack.EMPTY); } else { sourceSlot.setChanged(); } sourceSlot.onTake(playerIn, sourceStack); return copyOfSourceStack; } @Override public boolean stillValid(Player pPlayer) { return stillValid(ContainerLevelAccess.create(level, blockEntity.getBlockPos()), pPlayer, CelestialBlocks.LIGHT_ARMOR_BENCH.get()); } private void addPlayerInventory(Inventory playerInventory) { Celestial.LOGGER.info("Creating Player Inventory."); for (int i = 0; i < 3; ++i) { for (int l = 0; l < 9; ++l) { this.addSlot(new Slot(playerInventory, l + i * 9 + 9, 8 + l * 18, 84 + i * 18)); } } } private void addPlayerHotbar(Inventory playerInventory) { Celestial.LOGGER.info("Creating Player Hotbar."); for (int i = 0; i < 9; ++i) { this.addSlot(new Slot(playerInventory, i, 8 + i * 18, 142)); } } }   package net.leeveygames.celestial.screen; import com.mojang.blaze3d.systems.RenderSystem; import net.leeveygames.celestial.Celestial; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.screens.inventory.AbstractContainerScreen; import net.minecraft.client.renderer.GameRenderer; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Inventory; public class LightArmorBenchScreen extends AbstractContainerScreen<LightArmorBenchMenu> { private static final ResourceLocation TEXTURE = new ResourceLocation(Celestial.MOD_ID, "textures/gui/LightArmorBenchGUI.png"); public LightArmorBenchScreen(LightArmorBenchMenu pMenu, Inventory pPlayerInventory, Component pTitle) { super(pMenu, pPlayerInventory, pTitle); Celestial.LOGGER.info("Creating Light Armor Bench Screen."); this.imageWidth = 176; this.imageHeight = 166; } @Override protected void init() { Celestial.LOGGER.info("Screen init."); super.init(); } @Override protected void renderBg(GuiGraphics guiGraphics, float pPartialTick, int pMouseX, int pMouseY) { Celestial.LOGGER.info("Render Background Method."); RenderSystem.setShader(GameRenderer::getPositionTexShader); RenderSystem.setShaderColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.setShaderTexture(0, TEXTURE); guiGraphics.blit(TEXTURE, this.leftPos, this.topPos, 0, 0, this.imageWidth, this.imageHeight); } @Override public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float delta) { Celestial.LOGGER.info("Render Method."); renderBackground(guiGraphics); super.render(guiGraphics, mouseX, mouseY, delta); renderTooltip(guiGraphics, mouseX, mouseY); } }   package net.leeveygames.celestial.blocks.entity; import net.leeveygames.celestial.screen.LightArmorBenchMenu; import net.minecraft.client.gui.screens.inventory.FurnaceScreen; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.chat.Component; import net.minecraft.world.Container; import net.minecraft.world.Containers; import net.minecraft.world.MenuProvider; import net.minecraft.world.SimpleContainer; import net.minecraft.world.entity.player.Inventory; import net.minecraft.world.entity.player.Player; import net.minecraft.world.inventory.AbstractContainerMenu; import net.minecraft.world.inventory.ContainerData; import net.minecraft.world.inventory.FurnaceMenu; import net.minecraft.world.item.Item; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.level.block.entity.BlockEntity; import net.minecraft.world.level.block.entity.BlockEntityType; import net.minecraft.world.level.block.state.BlockState; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common.capabilities.ForgeCapabilities; import net.minecraftforge.common.util.LazyOptional; import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.ItemStackHandler; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public class LightArmorBenchBlockEntity extends BlockEntity implements MenuProvider { private final ItemStackHandler itemHandler = new ItemStackHandler(3) { @Override protected void onContentsChanged(int slot) { super.onContentsChanged(slot); LightArmorBenchBlockEntity.this.setChanged(); } }; private static final int INPUT_SLOT = 0; private static final int OUTPUT_SLOT = 1; private LazyOptional<IItemHandler> lazyItemHandler = LazyOptional.empty(); public LightArmorBenchBlockEntity(BlockPos pPos, BlockState pBlockState) { super(CelestialBlockEntities.LIGHT_ARMOR_BENCH_BLOCK_ENTITY.get(), pPos, pBlockState); } @Override public @NotNull <T> LazyOptional<T> getCapability(@NotNull Capability<T> cap, @Nullable Direction side) { if(cap == ForgeCapabilities.ITEM_HANDLER) { return lazyItemHandler.cast(); } return super.getCapability(cap, side); } @Override public void onLoad() { super.onLoad(); lazyItemHandler = LazyOptional.of(() -> itemHandler); } @Override public void invalidateCaps() { super.invalidateCaps(); lazyItemHandler.invalidate(); } public void drops() { SimpleContainer inventory = new SimpleContainer(itemHandler.getSlots()); for(int i = 0; i < itemHandler.getSlots(); i++) { inventory.setItem(i, itemHandler.getStackInSlot(i)); } Containers.dropContents(this.level, this.worldPosition, inventory); } @Override public Component getDisplayName() { return Component.translatable("block.celestial.light_armor_bench"); } @Nullable @Override public AbstractContainerMenu createMenu(int pContainerId, Inventory pPlayerInventory, Player pPlayer) { return new LightArmorBenchMenu(pContainerId, pPlayerInventory, this); } @Override protected void saveAdditional(CompoundTag pTag) { pTag.put("inventory", itemHandler.serializeNBT()); super.saveAdditional(pTag); } @Override public void load(CompoundTag pTag) { super.load(pTag); itemHandler.deserializeNBT(pTag.getCompound("inventory")); } public void tick(Level pLevel, BlockPos pPos, BlockState pState) { } }   Here is the console output: https://pastebin.com/krgExnYT
    • I couldn't find much usage, I found this and attempted to implement it. It doesn't seem to do anything though. I have this linked to a server to client packet... I have been at this since September seventh and have not made any progress. Blockpos and Blockstate are all pre-assigned variables, as is pLevel. I took the vertex consumer directly from LevelRenderer where I got this code from anyways. I didn't know what number to put into the ModelBakery.DESTROY_TYPES.get() so I just put the breakTime I used in the above code. Am I missing something?
    • Problematic part: [net.minecraft.server.network.ServerGamePacketListenerImpl/]: Gu57 lost connection: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException: Cannot invoke "net.minecraft.resources.ResourceLocation.toString()" because "p_130086_" is null There is no crash, single player works, sadly it's not Hexerei Debug log: (can't use pastebin, cause 10 mb) https://drive.google.com/file/d/16ikQIx7nYjJtF4aJLy5KqFQHh6-jBNrd/view?usp=sharing
    • Something in the Alex's Caves mod is preventing Distant Horizons from rendering. However, I don't want to get rid of Alex's Caves, as it is a part of my personal modded experience. Can someone please find the issue for me?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.