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

[1.16.5] Capability cannot be cast to [..]


Phi
 Share

Recommended Posts

Hello, when I load my mod along with other mods, I run into a crash on world load that goes along the lines of "Capability A cannot be cast to Capability B", where Capability A is mine and B is whichever other one. It does this for multiple other mods so I'm guessing I did something stupid, but I have no clue what. The error itself also occurs in the other mods, so I don't know where to look in my code.
Some examples:
 

[Render thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: dev.stormwatch.vanillaspice.data.DefaultPlayerStats cannot be cast to tschipp.carryon.common.capabilities.Imposition

[Server thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: dev.stormwatch.vanillaspice.data.DefaultPlayerStats cannot be cast to twilightforest.capabilities.shield.IShieldCapability

Any insight would be appreciated. 

 

https://github.com/Phi-1/VanillaSpice

Link to comment
Share on other sites

I guess because it goes through so many layers behind the scenes that it's hard to understand at first glance what you're supposed to provide where. I'm sure that it's simple enough once you understand how it works, but I'm not there yet.

Also I suppose that's kind of what modding is like in general.

Edited by Phi
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 know of two servers that send a sendPacket with text to send notifications from the server. Can help I know of two servers that send a sendPacket with text to send notifications from the server. 
    • What should I do then? 
    • post a git repo so i can debug this local, since your code looks okay it should work
    • When my mod attempts to build and try to download the mappings, I get this error. > Could not find net.minecraftforge:forge:1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.      Searched in the following locations:        - https://repo.maven.apache.org/maven2/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - file:/C:/Users/palad/.m2/repository/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://libraries.minecraft.net/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://maven.minecraftforge.net/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://dvs1.progwml6.com/files/maven/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://maven.tterrag.com/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://maven.blamejared.com/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - https://maven.minecraftforge.net/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.module        - https://maven.minecraftforge.net/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.jar        - file:/C:/Users/palad/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.pom        - file:/C:/Users/palad/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.jar        - https://libraries.minecraft.net/net/minecraftforge/forge/1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b/forge-1.18-38.0.15_mapped_official_1.18_at_69dcb59b344338a3e5978a88158d63d53d0bea6b.jar   How can I fix this?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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