Jump to content

1.19.2 Medieval Minecraft MMC3 Forge Crash on Startup, Error Code 1


Recommended Posts

[15Jul2023 20:42:31.193] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Relaxational, --version, forge-43.2.14, --gameDir, C:\Users\lharr\curseforge\minecraft\Instances\Medieval MC [FORGE] - MMC3, --assetsDir, C:\Users\lharr\curseforge\minecraft\Install\assets, --assetIndex, 1.19, --uuid, 067da56f2a514c8f885670734f49116f, --accessToken, ????????, --clientId, M2E0ODBmYzEtNjM3Yy00MWVmLTkzNjktYmY0OTg4YmEzMTBm, --xuid, 2533274871922239, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 43.2.14, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853]
[15Jul2023 20:42:31.198] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: 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
[15Jul2023 20:42:32.992] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/lharr/curseforge/minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2397!/ Service=ModLauncher Env=CLIENT
[15Jul2023 20:42:34.061] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\lharr\curseforge\minecraft\Install\libraries\net\minecraftforge\fmlcore\1.19.2-43.2.14\fmlcore-1.19.2-43.2.14.jar is missing mods.toml file
[15Jul2023 20:42:34.065] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\lharr\curseforge\minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.19.2-43.2.14\javafmllanguage-1.19.2-43.2.14.jar is missing mods.toml file
[15Jul2023 20:42:34.067] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\lharr\curseforge\minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.19.2-43.2.14\lowcodelanguage-1.19.2-43.2.14.jar is missing mods.toml file
[15Jul2023 20:42:34.069] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\lharr\curseforge\minecraft\Install\libraries\net\minecraftforge\mclanguage\1.19.2-43.2.14\mclanguage-1.19.2-43.2.14.jar is missing mods.toml file
[15Jul2023 20:42:34.303] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: terrablender. Using Mod File: C:\Users\lharr\curseforge\minecraft\Instances\Medieval MC [FORGE] - MMC3\mods\TerraBlender-forge-1.19.2-2.0.1.162.jar
[15Jul2023 20:42:34.303] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 23 dependencies adding them to mods collection
[15Jul2023 20:42:39.885] [main/ERROR] [mixin/]: Mixin config dynamiclightsreforged.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:39.890] [main/INFO] [mixin/]: Compatibility level set to JAVA_17
[15Jul2023 20:42:39.958] [main/ERROR] [mixin/]: Mixin config vinery-common.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:39.960] [main/ERROR] [mixin/]: Mixin config vinery.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.137] [main/ERROR] [mixin/]: Mixin config epicsamurai.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.371] [main/ERROR] [mixin/]: Mixin config entity_texture_features-forge.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.374] [main/ERROR] [mixin/]: Mixin config entity_texture_features-common.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.544] [main/ERROR] [mixin/]: Mixin config rottencreatures-common.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.546] [main/ERROR] [mixin/]: Mixin config rottencreatures.mixins.json does not specify "minVersion" property
[15Jul2023 20:42:40.644] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector]
[15Jul2023 20:42:40.645] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.aizistral.nochatreports.MixinConnector]
[15Jul2023 20:42:40.645] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, forge-43.2.14, --gameDir, C:\Users\lharr\curseforge\minecraft\Instances\Medieval MC [FORGE] - MMC3, --assetsDir, C:\Users\lharr\curseforge\minecraft\Install\assets, --uuid, 067da56f2a514c8f885670734f49116f, --username, Relaxational, --assetIndex, 1.19, --accessToken, ????????, --clientId, M2E0ODBmYzEtNjM3Yy00MWVmLTkzNjktYmY0OTg4YmEzMTBm, --xuid, 2533274871922239, --userType, msa, --versionType, release, --width, 1024, --height, 768]
[15Jul2023 20:42:40.698] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 30 options available, 0 override(s) found
[15Jul2023 20:42:40.751] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix: 56 options available, 1 override(s) found
[15Jul2023 20:42:40.751] [main/INFO] [ModernFix/]: Applying Nashorn fix
[15Jul2023 20:42:40.788] [main/WARN] [mixin/]: Reference map 'vinery-forge-refmap.json' for vinery.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.866] [main/WARN] [mixin/]: Reference map 'mysticaloaktree-common-refmap.json' for mysticaloaktree-common.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.869] [main/WARN] [mixin/]: Reference map 'mysticaloaktree-forge-refmap.json' for mysticaloaktree.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.923] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.926] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.928] [main/WARN] [mixin/]: Reference map 'abundant_atmosphere.refmap.json' for abundant_atmosphere.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:40.984] [main/WARN] [mixin/]: Reference map 'arclight.mixins.refmap.json' for epicsamurai.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.093] [main/WARN] [mixin/]: Reference map '${refmap_target}refmap.json' for corgilib.forge.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.131] [main/INFO] [Sodium Extra Config/]: Loaded configuration file for Sodium Extra: 28 options available, 0 override(s) found
[15Jul2023 20:42:41.172] [main/WARN] [CanaryConfig/]: Option 'mixin.world.block_entity_ticking.world_border' requires 'mixin.util.world_border_listener=true' but found 'false'. Setting 'mixin.world.block_entity_ticking.world_border=false'.
[15Jul2023 20:42:41.172] [main/INFO] [Canary/]: Loaded configuration file for Canary: 140 options available, 4 override(s) found
[15Jul2023 20:42:41.192] [main/WARN] [mixin/]: Reference map 'tlc.refmap.json' for tlc.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.230] [main/WARN] [mixin/]: Reference map 'v_slab_compat-common-refmap.json' for v_slab_compat-common.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.322] [main/WARN] [mixin/]: Reference map 'dummmmmmy-forge-refmap.json' for dummmmmmy.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.430] [main/WARN] [mixin/]: Reference map 'xlpackets.refmap.json' for xlpackets.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.530] [main/WARN] [mixin/]: Reference map 'rottencreatures-forge-refmap.json' for rottencreatures.mixins.json could not be read. If this is a development environment you can ignore this message
[15Jul2023 20:42:41.946] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/inventory/AnvilMenu
[15Jul2023 20:42:42.028] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:42.032] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:42.264] [main/WARN] [ModernFix/]: Force-disabling mixin 'perf.thread_priorities.UtilMixin' as rule 'mixin.perf.thread_priorities' (added by mods [smoothboot]) disables it and children
[15Jul2023 20:42:42.264] [main/WARN] [ModernFix/]: Force-disabling mixin 'perf.thread_priorities.IntegratedServerMixin' as rule 'mixin.perf.thread_priorities' (added by mods [smoothboot]) disables it and children
[15Jul2023 20:42:42.419] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:42.420] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:42.844] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching FishingHook#catchingFish
[15Jul2023 20:42:43.030] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.PoiManagerMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.031] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.PoiSectionMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.031] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.PoiTypesMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.032] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.SectionStorageMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.032] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.fast_portals.PortalForcerMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.032] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.tasks.LocateHidingPlaceMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.032] [main/WARN] [Canary/]: Force-disabling mixin 'ai.poi.tasks.RaiderMoveThroughVillageGoalMixin' as rule 'mixin.ai.poi' (added by user configuration) disables it and children
[15Jul2023 20:42:43.037] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.AbstractMinecartMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.037] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ChestBoatMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.037] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ClassInstanceMultiMapMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.037] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ComposterBlockMixin$ComposterBlockEmptyContainerMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ComposterBlockMixin$ComposterBlockInputContainerMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ComposterBlockMixin$ComposterBlockOutputContainerMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.CompoundContainerAccessor' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ContainerMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.EntityAccessor' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.EntityDataAccessorMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.038] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.EntitySectionAccessor' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.040] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.HopperBlockEntityMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.HopperBlockMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorAbstractFurnaceBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorAbstractMinecartEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorBarrelBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorBrewingStandBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.041] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorChestBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.042] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorDispenserBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.042] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorHopperBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.042] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorRandomizableContainerBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.042] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.InventoryAccessors$InventoryAccessorShulkerBoxBlockEntity' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.042] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ItemStackMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.043] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.LevelMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.043] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.NonNullListAccessor' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.043] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.ScreenHandlerMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.043] [main/WARN] [Canary/]: Force-disabling mixin 'block.hopper.world_edit_compat.LevelChunkMixin' as rule 'mixin.block.hopper' (added by user configuration) disables it and children
[15Jul2023 20:42:43.051] [main/WARN] [Canary/]: Force-disabling mixin 'entity.collisions.suffocation.EntityMixin' as rule 'mixin.entity.collisions.suffocation' (added by user configuration) disables it and children
[15Jul2023 20:42:43.067] [main/WARN] [Canary/]: Force-disabling mixin 'world.player_chunk_tick.ChunkMapMixin' as rule 'mixin.world.player_chunk_tick' (added by mods [pluto]) disables it and children
[15Jul2023 20:42:43.271] [main/WARN] [IMixinConfigPlugin/]: Inventory Profiles Next: Doing our own dependency resolving! Because Forge is being Forge....: https://github.com/MinecraftForge/MinecraftForge/issues/9088
[15Jul2023 20:42:43.401] [main/WARN] [mixin/]: Error loading class: de/maxhenkel/easyvillagers/blocks/tileentity/ConverterTileentity (java.lang.ClassNotFoundException: de.maxhenkel.easyvillagers.blocks.tileentity.ConverterTileentity)
[15Jul2023 20:42:43.402] [main/WARN] [mixin/]: @Mixin target de.maxhenkel.easyvillagers.blocks.tileentity.ConverterTileentity was not found skilltree.mixins.json:easyvillagers/MixinConverterTileentity
[15Jul2023 20:42:43.459] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds
[15Jul2023 20:42:43.460] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTreasureOnly() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds
[15Jul2023 20:42:43.460] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTradeable() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds
[15Jul2023 20:42:43.467] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/item/EnchantedBookItem
[15Jul2023 20:42:43.474] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction
[15Jul2023 20:42:43.474] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isDiscoverable() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction
[15Jul2023 20:42:43.553] [main/WARN] [mixin/]: Error loading class: net/orcinus/overweightfarming/blocks/CropFullBlock (java.lang.ClassNotFoundException: net.orcinus.overweightfarming.blocks.CropFullBlock)
[15Jul2023 20:42:43.553] [main/WARN] [mixin/]: @Mixin target net.orcinus.overweightfarming.blocks.CropFullBlock was not found create_central_kitchen.mixins.json:common.overweightfarming.CropFullBlockMixin
[15Jul2023 20:42:43.583] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Will be applying 4 memory leak fixes!
[15Jul2023 20:42:43.583] [main/INFO] [memoryleakfix/]: [MemoryLeakFix] Currently enabled memory leak fixes: [targetEntityLeak, entityMemoriesLeak, biomeTemperatureLeak, hugeScreenshotLeak]
[15Jul2023 20:42:44.514] [main/WARN] [mixin/]: @Final field f_96540_:Ljava/util/List; in relics.mixins.json:MixinScreen should be final
[15Jul2023 20:42:44.521] [main/WARN] [mixin/]: Method overwrite conflict for m_6702_ in iceberg.mixins.json:ScreenMixin, previously written by it.hurts.sskirillss.relics.mixin.MixinScreen. Skipping method.
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]: BeforeConstant is searching for constants in method with descriptor (Lnet/minecraft/network/chat/Component;Z)V
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:   BeforeConstant found INTEGER constant: value = 0, intValue = null
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:     BeforeConstant found a matching constant TYPE at ordinal 0
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:       BeforeConstant found Insn [ICONST_0] 
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:   BeforeConstant found INTEGER constant: value = 60, intValue = null
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:     BeforeConstant found a matching constant TYPE at ordinal 1
[15Jul2023 20:42:44.734] [main/INFO] [mixin/]:       BeforeConstant found IntInsn 60
[15Jul2023 20:42:44.785] [main/INFO] [mixin/]: Mixing client.MixinTitleScreen from nochatreports.mixins.json into net.minecraft.client.gui.screens.TitleScreen
[15Jul2023 20:42:45.017] [main/INFO] [mixin/]: Mixing client.MixinLocalPlayer from nochatreports.mixins.json into net.minecraft.client.player.LocalPlayer
[15Jul2023 20:42:45.064] [main/WARN] [mixin/]: Discarding @Unique public method getAnimatedSkin in 3dskinlayers.mixins.json:DonorAbstractClientPlayerMixin because it already exists in net.minecraft.client.player.AbstractClientPlayer
[15Jul2023 20:42:45.101] [main/INFO] [mixin/]: Mixing server.MixinPlayer from nochatreports.mixins.json into net.minecraft.world.entity.player.Player
[15Jul2023 20:42:45.258] [main/WARN] [mixin/]: @Final field f_20945_:Ljava/util/Map; in vinery-common.mixins.json:LivingEntityMixin should be final
[15Jul2023 20:42:45.355] [main/INFO] [mixin/]: Mixing client.MixinChatScreen from nochatreports.mixins.json into net.minecraft.client.gui.screens.ChatScreen
[15Jul2023 20:42:45.356] [main/INFO] [mixin/]: Renaming synthetic method lambda$onInit$4(Lnet/minecraft/client/gui/components/Button;Lcom/mojang/blaze3d/vertex/PoseStack;II)V to mde242e3$lambda$onInit$4$0 in nochatreports.mixins.json:client.MixinChatScreen
[15Jul2023 20:42:45.356] [main/INFO] [mixin/]: Renaming synthetic method lambda$onInit$3(Lnet/minecraft/client/gui/components/Button;)V to mde242e3$lambda$onInit$3$1 in nochatreports.mixins.json:client.MixinChatScreen
[15Jul2023 20:42:45.356] [main/INFO] [mixin/]: Renaming synthetic method lambda$onInit$2(Lcom/aizistral/nochatreports/core/ServerSafetyLevel;Lnet/minecraft/client/gui/components/Button;Lcom/mojang/blaze3d/vertex/PoseStack;II)V to mde242e3$lambda$onInit$2$2 in nochatreports.mixins.json:client.MixinChatScreen
[15Jul2023 20:42:45.356] [main/INFO] [mixin/]: Renaming synthetic method lambda$onInit$1(Lnet/minecraft/client/gui/components/Button;)V to mde242e3$lambda$onInit$1$3 in nochatreports.mixins.json:client.MixinChatScreen
[15Jul2023 20:42:45.356] [main/INFO] [mixin/]: Renaming synthetic method lambda$onBeforeMessage$0(Ljava/lang/String;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;Lcom/aizistral/nochatreports/encryption/Encryptor;)V to mde242e3$lambda$onBeforeMessage$0$4 in nochatreports.mixins.json:client.MixinChatScreen
[15Jul2023 20:42:45.499] [pool-4-thread-1/INFO] [net.minecraft.server.Bootstrap/]: ModernFix bootstrap
[15Jul2023 20:42:46.057] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_7370_ in biomemakeover-common.mixins.json:mushroom.MyceliumBlockMixin, previously written by com.teamabnormals.environmental.core.mixin.MyceliumBlockMixin. Skipping method.
[15Jul2023 20:42:46.057] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_214167_ in biomemakeover-common.mixins.json:mushroom.MyceliumBlockMixin, previously written by com.teamabnormals.environmental.core.mixin.MyceliumBlockMixin. Skipping method.
[15Jul2023 20:42:46.058] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_214148_ in biomemakeover-common.mixins.json:mushroom.MyceliumBlockMixin, previously written by com.teamabnormals.environmental.core.mixin.MyceliumBlockMixin. Skipping method.
[15Jul2023 20:42:46.402] [pool-4-thread-1/INFO] [net.minecraft.server.Bootstrap/]: Vanilla bootstrap took 900 milliseconds
[15Jul2023 20:42:46.862] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 5 calls to Enchantment#getMaxLevel() in vazkii/quark/content/tools/module/AncientTomesModule
[15Jul2023 20:42:46.874] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:46.874] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel
[15Jul2023 20:42:46.928] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/inventory/AnvilMenu
[15Jul2023 20:42:46.929] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in com/mrcrayfish/goblintraders/Hooks
[15Jul2023 20:42:47.428] [pool-4-thread-1/INFO] [ModernFix/]: Bypassed Mojang DFU
[15Jul2023 20:42:48.110] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_7380_ in friendsandfoes-common.mixins.json:ZombieHorseEntityMixin, previously written by net.mehvahdjukaar.supplementaries.mixins.ZombieHorseMixin. Skipping method.
[15Jul2023 20:42:48.110] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_7378_ in friendsandfoes-common.mixins.json:ZombieHorseEntityMixin, previously written by net.mehvahdjukaar.supplementaries.mixins.ZombieHorseMixin. Skipping method.
[15Jul2023 20:42:48.116] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching FishingHook#catchingFish
[15Jul2023 20:42:48.433] [pool-4-thread-1/WARN] [mixin/]: Method overwrite conflict for m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin, previously written by com.abdelaziz.saturn.mixin.world.temperature_cache.BiomeMixin. Skipping method.
[15Jul2023 20:42:48.858] [pool-4-thread-1/WARN] [mixin/]: Mixin villagersplus.mixins.json:EntityBucketItemMixin has multiple constructors, (Lnet/minecraft/world/level/material/Fluid;Lnet/minecraft/world/item/Item$Properties;)V was selected

[15Jul2023 20:42:48.891] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/item/EnchantedBookItem
[15Jul2023 20:42:49.147] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction
[15Jul2023 20:42:49.147] [pool-4-thread-1/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isDiscoverable() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction
[15Jul2023 20:42:49.476] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/lharr/curseforge/minecraft/Install/libraries/net/minecraft/client/1.19.2-20220805.130853/client-1.19.2-20220805.130853-srg.jar%23841!/assets/.mcassetsroot' uses unexpected schema
[15Jul2023 20:42:49.477] [Render thread/WARN] [net.minecraft.server.packs.VanillaPackResources/]: Assets URL 'union:/C:/Users/lharr/curseforge/minecraft/Install/libraries/net/minecraft/client/1.19.2-20220805.130853/client-1.19.2-20220805.130853-srg.jar%23841!/data/.mcassetsroot' uses unexpected schema
[15Jul2023 20:42:49.545] [Render thread/INFO] [com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService/]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[15Jul2023 20:42:49.865] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Setting user: Relaxational
[15Jul2023 20:42:49.871] [Render thread/INFO] [mixin/]: Mixing client.MixinToastComponent from nochatreports.mixins.json into net.minecraft.client.gui.components.toasts.ToastComponent
[15Jul2023 20:42:49.876] [Render thread/INFO] [mixin/]: Mixing client.MixinOptions from nochatreports.mixins.json into net.minecraft.client.Options
[15Jul2023 20:42:49.876] [Render thread/INFO] [mixin/]: Renaming synthetic method lambda$onlyShowSecureChat$1(Ljava/lang/Boolean;)V to mde242e3$lambda$onlyShowSecureChat$1$0 in nochatreports.mixins.json:client.MixinOptions
[15Jul2023 20:42:49.876] [Render thread/INFO] [mixin/]: Renaming synthetic method lambda$onlyShowSecureChat$0(Lnet/minecraft/network/chat/Component;Ljava/lang/Boolean;)Lnet/minecraft/network/chat/Component; to mde242e3$lambda$onlyShowSecureChat$0$1 in nochatreports.mixins.json:client.MixinOptions
[15Jul2023 20:42:49.910] [Render thread/INFO] [mixin/]: Mixing client.MixinChatComponent from nochatreports.mixins.json into net.minecraft.client.gui.components.ChatComponent
[15Jul2023 20:42:49.910] [Render thread/INFO] [mixin/]: Renaming synthetic method lambda$modifyGUIMessage$1()V to mde242e3$lambda$modifyGUIMessage$1$0 in nochatreports.mixins.json:client.MixinChatComponent
[15Jul2023 20:42:49.911] [Render thread/INFO] [mixin/]: Renaming synthetic method lambda$modifyGUIMessage$0(Lnet/minecraft/network/chat/FormattedText;Lnet/minecraft/network/chat/Component;)V to mde242e3$lambda$modifyGUIMessage$0$1 in nochatreports.mixins.json:client.MixinChatComponent
[15Jul2023 20:42:49.918] [Render thread/INFO] [mixin/]: Mixing client.MixinGuiMessageTagIcon from nochatreports.mixins.json into net.minecraft.client.GuiMessageTag$Icon
[15Jul2023 20:42:49.918] [Render thread/INFO] [mixin/]: Renaming @Invoker method create(Ljava/lang/String;IIIII)Lnet/minecraft/client/GuiMessageTag$Icon; to create_$md$e242e3$0 in nochatreports.mixins.json:client.MixinGuiMessageTagIcon
[15Jul2023 20:42:49.964] [Render thread/INFO] [defaultoptions/]: Loaded default options for extra-folder
[15Jul2023 20:42:50.016] [Render thread/INFO] [net.minecraft.client.Minecraft/]: Backend library: LWJGL version 3.3.1 build 7

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
  • Topics

×
×
  • Create New...

Important Information

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