Posted June 24, 20223 yr Eya! I'm here again 😅 I'm trying to create a custom capabilities, I've made caps before on 1.16, but idk how to make them on 1.19 and something is failing. Here's my code: https://github.com/Zanckor/DBZ.git
June 24, 20223 yr the ResourceLocation here can not contains a letter in upper case null here should be replaced with: CapabilityManager.get(new CapabilityToken<IMyCapability>() {}) this EventHandler is never registered the other code look okay Edited June 24, 20223 yr by Luis_ST
June 24, 20223 yr Author 8 minutes ago, Luis_ST said: this EventHandler is never registered Where and how I should register it? 15 minutes ago, diesieben07 said: What is "failing"? Failing is that something is wrong/not working
June 24, 20223 yr 9 minutes ago, Zanckor said: Where and how I should register it? https://docs.minecraftforge.net/en/1.19.x/concepts/events/#creating-an-event-handler 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.
June 24, 20223 yr 12 minutes ago, Zanckor said: Where and how I should register it? it's recommended to use the @EventBusSubscriber
June 24, 20223 yr Author Capabilities.getPlayer(e.getPlayer()) is returning me always "null", so whenever i try to set any value minecraft crashes. Why is returning me "null"?
June 24, 20223 yr Author 5 minutes ago, Luis_ST said: is the EventHandler called? Oh fuck ma bad, i did something else Edited June 24, 20223 yr by Zanckor
June 24, 20223 yr update your code, i would also recommend you to upload your whole project using a git client
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.