Jump to content

Forge Capabilities Randomly Disappearing


BURN447

Recommended Posts

I'm running into an issue that I cannot replicate, but randomly when using one of my items that has a custom capability attached, it randomly resets/disappears back to the default. I'm assuming this happens after damage, but I have not been able to find any relation between when this happens. Would anyone know a reason behind these capabilities resetting to their default state? 

 

Capability Code: https://github.com/BURN447/DartcraftReloaded/tree/master/src/main/java/burn447/dartcraftReloaded/capablilities/ToolModifier

Item it is resetting on: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Items/ItemArmor.java

 

If this doesn't work, I'll probably just rewrite my code to use hidden enchantments

Edited by BURN447
Link to comment
Share on other sites

Have you tried putting a breakpoint at initCapabilities?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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

    • UPDATE: I have scanned again and have got two new errors, of which I am not sure about.   Caused by: java.io.EOFException: SSL peer shut down incorrectly Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake   I have looked at the scan, though I am not sure what exactly I am looking for. (IntelliJ recommended to find the stacktrace so I could link it if necessary).  
    • I have recently received support for my upcoming mod, which I have implemented but have received multiple errors giving the same output. I am not sure what to do as I have found out the meaning of java.lang.IllegalStateException and java.lang.ExceptionInInititializerError, though this has not helped me in the slightest! I have performed scans though I am still not sure...   Caused by: java.lang.IllegalStateException: Cannot register new entries to DeferredRegister after RegisterEvent has been fired. (3x) Caused by: java.lang.ExceptionInInitializerError (2x)
    • I using Afterpay for all my online shopping needs! The convenience of being able to split my payments into four easy installments has been a game-changer for me. The user-friendly interface makes it a breeze to manage my purchases and payments, find more reviews on https://afterpay.pissedconsumer.com/review.html . I also appreciate the transparency of their fees and the flexibility they offer in adjusting payment dates. Overall, Afterpay has made shopping online so much more enjoyable and stress-free for me. I highly recommend giving it a try!
    • im doing a kin of custome mineshaft tunel but whit slabs  notice minecarts dont works out of minecar rails soo i need to find a way to lay rails on slabs having in account inclination  Here in the video the minecart stucks on the slab it can not run over anything different from rail blocks    i was thinking into extending RailBlock but latter how i make minecrats to aknoledge mi custome rail slab or vainilla rails to connect whit the costume one  or it is anothe option besides making a custome mine cart and override the vainilla one ??        
    • broo i dont know what are you doing but i think that thing is lacking parentheses Level waruddo = pe.level()
  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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