Jump to content

[1.16.5]Help with capabilities


cwJn
 Share

Recommended Posts

I want to start developing a mod that adds different damage types to the game, but I'm not entirely sure where to begin. I looked at TerraFirmaCraft's code a bit, but it's for 1.12 so I'm reluctant to learn from it since it's so out of date. Would capabilities be the best option for implementing this? I've never had to use capabilities for any of my projects so far, so I'm not quite sure how they work.

Link to comment
Share on other sites

You don't need capabilities to create a new damage type. You just call... new DamageType(...)

Super mega ultra old code, but its not like anything's changed much, if at all:

https://github.com/Draco18s/Decaying-World/blob/master/draco18s/decay/items/IceNineShard.java#L38

https://github.com/Draco18s/Decaying-World/blob/master/temp-7-26-13/draco18s/decay/ColdDamage.java#L11

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

No, you would need capabilities for that (if an existing entity is resistant, or the player) unless only your own mobs are resistant.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

26 minutes ago, cwJn said:

I was able to figure some stuff out and get it working. On a separate note, is there a way to get the item used by the attacking player in AttackEntityEvent?

it depends on damage type somewhat, but event.getPlayer().getMainHandItem() should give you a sword, if you want to check enchantments or whatever.

Link to comment
Share on other sites

Damage events don't have a player, you need to use event.getDamageSource() or event.getTrueSource()

Be aware of the following:

  • Source may be null
  • Source may not be a player

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Thanks for the advice, I'm now able to get the events working to a degree. The issue I'm having now is this:

I have a capability for both damage type and damage resistance. There are 3 new damage types that each have a corresponding resistance. Damage type capabilities are attached to weapons, while resistance capabilities are applied to entities. I use the following methods to apply extra damage types as well as calculate resistances. The problem is that when attacking an entity, only 1 instance of the new damage types is applied. As for the debugging messages, the 3 sendMessages are being sent in the extraDamage method. In the damageResistance method, only 1 System.out.println statement is being sent. Is there something to do with the way LivingHurtEvent works that only allowed 1 to be applied?

package com.cwjn.hardstuckintegration.Events;

import com.cwjn.hardstuckintegration.Capabilities.DamageTypes.CapabilityDamageTypes;
import com.cwjn.hardstuckintegration.Capabilities.DamageTypes.IDamageTypes;
import com.cwjn.hardstuckintegration.Capabilities.Resistances.CapabilityDamageResistance;
import com.cwjn.hardstuckintegration.Capabilities.Resistances.IDamageResistance;
import com.cwjn.hardstuckintegration.DamageTypes.ImpactDamage;
import com.cwjn.hardstuckintegration.DamageTypes.NewType;
import com.cwjn.hardstuckintegration.DamageTypes.PunctureDamage;
import com.cwjn.hardstuckintegration.DamageTypes.SlashDamage;
import com.cwjn.hardstuckintegration.HardstuckIntegration;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.util.Hand;
import net.minecraft.util.text.TranslationTextComponent;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import net.minecraftforge.event.entity.player.AttackEntityEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

@Mod.EventBusSubscriber(modid = HardstuckIntegration.modID)
public class DamageEvents {

    @SubscribeEvent
    public static void extraDamage(AttackEntityEvent event) {
        PlayerEntity player = event.getPlayer(); //player that is attacking
        Entity target = event.getTarget(); //target being attacked
        ItemStack item = player.getItemInHand(Hand.MAIN_HAND); //item used to attack

        if (item != null) {
            IDamageTypes damage = item.getCapability(CapabilityDamageTypes.DAMAGE_TYPES_CAPABILITY).orElse(null); //get the extra damage types
            if (damage != null) {
                float impactDamage = damage.getImpactDamage();
                float slashDamage = damage.getSlashDamage();  //store the extra damage types
                float punctureDamage = damage.getPunctureDamage();

                if (impactDamage > 0) {
                    player.sendMessage(new TranslationTextComponent("TARGET ENTITY DEALT: " + impactDamage + " POINTS OF IMPACT DAMAGE"), player.getUUID());
                    target.hurt(new ImpactDamage(), impactDamage); //if the item has extra impact damage, hurt the target with an instance of impact damage
                }
                if (slashDamage > 0) {
                    player.sendMessage(new TranslationTextComponent("TARGET ENTITY DEALT: " + slashDamage + " POINTS OF SLASH DAMAGE"), player.getUUID());
                    target.hurt(new SlashDamage(), slashDamage); //if the item has extra slash damage, hurt the target with an instance of slash damage
                }
                if (punctureDamage > 0) {
                    player.sendMessage(new TranslationTextComponent("TARGET ENTITY DEALT: " + punctureDamage + " POINTS OF PUNCTURE DAMAGE"), player.getUUID());
                    target.hurt(new PunctureDamage(), punctureDamage); //if the item has extra puncture damage, hurt the target with an instance of puncture damage
                }
            }
        }
    }

    @SubscribeEvent
    public static void damageResistance(LivingHurtEvent event) {
        DamageSource source = event.getSource(); //source of damage
        if (source instanceof NewType) { //check if the source is a subclass of the new damage types added with this mod
            float amount = event.getAmount(); //get initial amount of new damage, before resistances
            LivingEntity target = event.getEntityLiving(); //target of damage
            float newDamage = amount; //variable to hold post-resistance calculation damage

            IDamageResistance res = target.getCapability(CapabilityDamageResistance.DAMAGE_RESISTANCE_CAPABILITY).orElse(null); //get target's resistances
            if (res != null) {
                float impactRes = res.getImpactResistance();
                float slashRes = res.getSlashResistance(); //store the resistances
                float punctureRes = res.getPunctureResistance();

                switch (((NewType) source).getSourceAsString()) { //get the the source of damage as a string
                    case "slash":
                        if (slashRes > 0) newDamage = (amount * (100 / (100 + slashRes))); //if the target has resistances, apply math to reduce damage.
                        else if (slashRes < 0) newDamage = (amount * (2 - (100 / (100 - slashRes)))); //if the target has negative resistances, apply math to boost damage.
                        else newDamage = amount; //if the target has no resistances, apply initial damage unchanged
                        System.out.println("TARGET ENTITY TOOK: " + newDamage + " SLASH DAMAGE"); //used for debugging
                        break;
                    case "puncture": //same as case slash, but for puncture damage
                        if (punctureRes > 0) newDamage = (amount * (100 / (100 + punctureRes)));
                        else if (punctureRes < 0) newDamage = (amount * (2 - (100 / (100 - punctureRes))));
                        else newDamage = amount;
                        System.out.println("TARGET ENTITY TOOK: " + newDamage + " PUNCTURE DAMAGE");
                        break;
                    case "impact": //same as case slash, but for impact damage
                        if (impactRes > 0) newDamage = (amount * (100 / (100 + impactRes)));
                        else if (impactRes < 0) newDamage = (amount * (2 - (100 / (100 - impactRes))));
                        else newDamage = amount;
                        System.out.println("TARGET ENTITY TOOK: " + newDamage + " IMPACT DAMAGE");
                        break;
                }
            }
            event.setAmount(newDamage); //apply post-resistance calculation damage to the event
        }
    }

}

 

Link to comment
Share on other sites

7 minutes ago, cwJn said:
switch (((NewType) source).getSourceAsString())

Why the fak are you to-stringing that?

if(source instanceof ImpactDamage) works just fine. You could also create single static instances of your new damage type and use things like ModDamageTypes.SLASHING and the == operator, like vanilla does. Your damage type instances have NO custom data in them at all, so you should just do that (yes I realize my own, very old, code is not following that).

7 minutes ago, cwJn said:
new TranslationTextComponent("TARGET ENTITY DEALT: " + impactDamage + " POINTS OF IMPACT DAMAGE")

This is not how localization works.

7 minutes ago, cwJn said:
if (item != null) {

ItemStacks are never null.

7 minutes ago, cwJn said:
ItemStack item = player.getItemInHand(Hand.MAIN_HAND); //item used to attack

The player could be, though.

7 minutes ago, cwJn said:
.orElse(null); //get the extra damage types
if (res != null) {

Use ifPresent() instead.

7 minutes ago, cwJn said:
System.out.println("TARGET ENTITY TOOK: " + newDamage + " SLASH DAMAGE"); //used for debugging

You should use the logger Forge provides you instead.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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

    • I did everything i could to fix it, but nothing works. Error code: ---- Minecraft Crash Report ---- // Why did you do that? Time: 12/5/22 6:51 PM Description: Initializing game java.lang.NullPointerException: Initializing game     at net.minecraft.client.renderer.color.BlockColors.func_186722_a(BlockColors.java:97) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at voronoiaoc.byg.client.textures.BlockColorManager.onBlockColorsInit(BlockColorManager.java:29) ~[?:1.0.11] {re:classloading}     at net.minecraftforge.eventbus.ASMEventHandler_181_BlockColorManager_onBlockColorsInit_Block.invoke(.dynamic) ~[?:?] {}     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.1-service.jar:?] {}     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.1-service.jar:?] {}     at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168) ~[?:31.2] {re:classloading}     at net.minecraftforge.fml.ModLoader.lambda$postEvent$31(ModLoader.java:260) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader$$Lambda$4851/35539019.accept(Unknown Source) ~[?:?] {}     at java.util.HashMap.forEach(HashMap.java:1280) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:218) ~[?:?] {re:classloading}     at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:260) ~[?:?] {re:classloading}     at net.minecraftforge.client.ForgeHooksClient.onBlockColorsInit(ForgeHooksClient.java:207) ~[?:?] {re:classloading}     at net.minecraft.client.renderer.color.BlockColors.func_186723_a(BlockColors.java:76) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.<init>(Minecraft.java:419) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:assets/immersive_portals/immersive_portals.mixins_client.json:block_manipulation.MixinMinecraftClient_B,pl:mixin:APP:assets/immersive_portals/immersive_portals.mixins_client.json:MixinMinecraftClient,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(SourceFile:166) [?:?] {re:classloading}     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}     at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.15.2-31.2.57.jar:31.2] {}     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$488/524566446.call(Unknown Source) [forge-1.15.2-31.2.57.jar:31.2] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-5.1.2.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-5.1.2.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-5.1.2.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:81) [modlauncher-5.1.2.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) [modlauncher-5.1.2.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at net.minecraft.client.renderer.color.BlockColors.func_186722_a(BlockColors.java:97)     at voronoiaoc.byg.client.textures.BlockColorManager.onBlockColorsInit(BlockColorManager.java:29)     at net.minecraftforge.eventbus.ASMEventHandler_181_BlockColorManager_onBlockColorsInit_Block.invoke(.dynamic)     at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)     at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)     at net.minecraftforge.fml.javafmlmod.FMLModContainer.acceptEvent(FMLModContainer.java:168)     at net.minecraftforge.fml.ModLoader.lambda$postEvent$31(ModLoader.java:260)     at net.minecraftforge.fml.ModLoader$$Lambda$4851/35539019.accept(Unknown Source)     at java.util.HashMap.forEach(HashMap.java:1280)     at net.minecraftforge.fml.ModList.forEachModContainer(ModList.java:218)     at net.minecraftforge.fml.ModLoader.postEvent(ModLoader.java:260)     at net.minecraftforge.client.ForgeHooksClient.onBlockColorsInit(ForgeHooksClient.java:207)     at net.minecraft.client.renderer.color.BlockColors.func_186723_a(BlockColors.java:76)     at net.minecraft.client.Minecraft.<init>(Minecraft.java:419) -- Initialization -- Details: Stacktrace:     at net.minecraft.client.main.Main.main(SourceFile:166)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51)     at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$488/524566446.call(Unknown Source)     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37)     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54)     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72)     at cpw.mods.modlauncher.Launcher.run(Launcher.java:81)     at cpw.mods.modlauncher.Launcher.main(Launcher.java:65) -- System Details -- Details:     Minecraft Version: 1.15.2     Minecraft Version ID: 1.15.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_51, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 1181118944 bytes (1126 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)     CPUs: 8     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     ModLauncher: 5.1.2+70+master.2845bb9     ModLauncher launch target: fmlclient     ModLauncher naming: srg     ModLauncher services:          /mixin-0.8.2.jar mixin PLUGINSERVICE          /eventbus-2.2.1-service.jar eventbus PLUGINSERVICE          /forge-1.15.2-31.2.57.jar object_holder_definalize PLUGINSERVICE          /forge-1.15.2-31.2.57.jar runtime_enum_extender PLUGINSERVICE          /accesstransformers-2.1.3-shadowed.jar accesstransformer PLUGINSERVICE          /forge-1.15.2-31.2.57.jar capability_inject_definalize PLUGINSERVICE          /forge-1.15.2-31.2.57.jar runtimedistcleaner PLUGINSERVICE          /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE          /forge-1.15.2-31.2.57.jar fml TRANSFORMATIONSERVICE      FML: 31.2     Forge: net.minecraftforge:31.2.57     FML Language Providers:          javafml@31.2         minecraft@1     Mod List:          forge-1.15.2-31.2.57-client.jar Minecraft {minecraft@1.15.2 CREATE_REGISTRIES}         pandoras_creatures-1.15.2-1.0.1.jar Pandoras Creatures {pandoras_creatures@1.15.2-1.0.1 CREATE_REGISTRIES}         ender-chested-1.15.2-1.0.2.jar Ender Chested {ender_chest_horses@1.0.2 CREATE_REGISTRIES}         mine-mine-no-mi-1.15.2-0.8.2.jar Mine Mine no Mi {mineminenomi@0.8.2 CREATE_REGISTRIES}         endportalrecipe_1.15.2-2.3.jar End Portal Recipe {endportalrecipe@2.3 CREATE_REGISTRIES}         areas_1.15.2-2.2.jar Areas {areas@2.2 CREATE_REGISTRIES}         the-conjurer-1.15.2-1.0.13.jar The Conjurer {conjurer_illager@1.0.13 CREATE_REGISTRIES}         Abnormals-Core-1.15.2-1.0.6.jar Abnormals Core {abnormals_core@1.0.6 CREATE_REGISTRIES}         simplelogin-0.0.0-alpha-mc1.15-build2.jar Simple Login {simplelogin@0.0.0-alpha-mc1.15-build2 CREATE_REGISTRIES}         modnametooltip_1.15.2-1.13.0.jar Mod Name Tooltip {modnametooltip@1.13.0 CREATE_REGISTRIES}         Neat+1.6-22.jar Neat {neat@1.6-22 CREATE_REGISTRIES}         collective-1.15.2-2.26.jar Collective {collective@2.26 CREATE_REGISTRIES}         EndReborn+[0.6.2].jar End: Reborn {endreborn@0.6.2 CREATE_REGISTRIES}         lanterncolors-1.15.2-1.0.1.jar Lantern Colors {lanterncolors@1.15.2-1.0.1 CREATE_REGISTRIES}         elevatorid-1.15.2-1.7.1.jar Elevator Mod {elevatorid@1.15.2-1.7.1 CREATE_REGISTRIES}         InventoryHud_1.15.2.forge-3.4.1.jar Inventory HUD+(Forge edition) {inventoryhud@3.4.1 CREATE_REGISTRIES}         DungeonCrawl-1.15.2-2.3.0-a.jar Dungeon Crawl {dungeoncrawl@2.3.0-a CREATE_REGISTRIES}         Desolation+1.0.2b+1.15.2.jar Desolation (Forge) {desolation@1.0.2b CREATE_REGISTRIES}         The-Endergetic-Expansion-1.15.2-v1.3.2.jar The Endergetic Expansion {endergetic@1.3.2 CREATE_REGISTRIES}         RealisticTorches-1.15.2-3.0.0.jar Realistic Torches {realistictorches@1.15.2-3.0.0 CREATE_REGISTRIES}         buildinggadgets-3.4.1.jar Building Gadgets {buildinggadgets@3.4.1 CREATE_REGISTRIES}         cobbler-1.5.1.jar Cobbler {cobbler@1.5.1 CREATE_REGISTRIES}         outvoted-1.15.2-1.2.1-rc1.jar Outvoted {outvoted@1.2.1-rc1 CREATE_REGISTRIES}         sworddisplay-1.15.2-1.5.1.jar Sword Displays {sworddisplay@1.15.2-1.5.1 CREATE_REGISTRIES}         BackTools-1.15.2-8.0.0.jar Back Tools {backtools@8.0.0 CREATE_REGISTRIES}         iChunUtil-1.15.2-8.0.3.jar iChunUtil {ichunutil@8.0.3 CREATE_REGISTRIES}         traverse-1.15.2-3.2.0.jar Traverse {traverse@1.15.2-3.2.0 ERROR}         carryon-1.15.2-1.13.0.5.jar Carry On {carryon@1.13.0.5 CREATE_REGISTRIES}         byg-1.0.11.jar Oh The Biomes You'll Go {byg@1.0.11 CREATE_REGISTRIES}         immersive-portals-0.24forMc1.15withForge.jar Immersive Portals {immersive_portals@0.24 CREATE_REGISTRIES}         forge-1.15.2-31.2.57-universal.jar Forge {forge@31.2.57 CREATE_REGISTRIES}         cofh_core-1.15.2-1.0.2.jar CoFH Core {cofh_core@1.0.2 CREATE_REGISTRIES}         archers_paradox-1.15.2-1.0.0.jar Archer's Paradox {archers_paradox@1.0.0 CREATE_REGISTRIES}         DragonMountsLegacy-1.0.5.jar Dragon Mounts Legacy {dragonmounts@1.0.5 CREATE_REGISTRIES}         colorbricks-forge-1.15.2-1.1.1.jar ColorBricks Mod {colorbricks@1.15.2-1.1.1 CREATE_REGISTRIES}         rainbegoneritual_1.15.2-1.4.jar Rain Be Gone Ritual {rainbegoneritual@1.4 CREATE_REGISTRIES}         castle_dungeons-1.3-1.15.2.jar Castle Dungeons {castle_dungeons@1.3 CREATE_REGISTRIES}         BetterMineshaftsForge-1.15.2-1.3.2.jar YUNG's Better Mineshafts {bettermineshafts@1.15.2-1.3.2 CREATE_REGISTRIES}         geckolib-forge-1.15.2-3.0.32.jar GeckoLib Example Mod {geckolib3@3.0.32 CREATE_REGISTRIES}         structure-gel-api-1.15.2-1.1.0.jar Structure Gel API {structure_gel@1.1.0 CREATE_REGISTRIES}         ironchest-1.15.2-10.0.3.jar Iron Chests {ironchest@1.15.2-10.0.1 CREATE_REGISTRIES}         dungeonsarise1.15.2-1.2.72b.jar Dungeons Arise {dungeons_arise@1.2.72b CREATE_REGISTRIES}         hakibar-1.15.2-1.5.jar Haki Bar {hakibar@1.5 CREATE_REGISTRIES}     Launched Version: 1.15.2-forge-31.2.57     Backend library: LWJGL version 3.2.2 build 10     Backend API: NVIDIA GeForce GTX 1050/PCIe/SSE2 GL version 4.6.0 NVIDIA 517.48, NVIDIA Corporation     GL Caps: Using framebuffer using OpenGL 3.0     Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     CPU: 8x Intel(R) Core(TM) i5-9300HF CPU @ 2.40GHz
    • I appreciate the response. I am not new to modded Minecraft. Just in 1.19.2. Normally i am pretty handy with crashes/logs but i hadn't seen this one before and the log really didn't give me anything to go on.
    • More information is needed. How did you try to run it? What happened when you did?
    • Did you check the debug.log in the logs folder?
    • Looks like one of your mods has broken networking. The error message does not say which one. Probably the only way you will find it is to remove mods one-by-one until the problem goes away.   If you are just starting with modded minecraft, I would suggest you use a prebuilt popular modpack that somebody else has tested They should have already removed all the bugs and incompatiblies. Otherwise you are going to spend a lot of time trying to do it yourself.
  • Topics

×
×
  • Create New...

Important Information

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