Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Make custom fireball

Members
  • Joined

  • Last visited

  1. Hello this is my first time working with capabilities and I'm still a bit confused on things but when i leave the world and log back in my capability is set back to 0. I made it so whenever I pressed a button in a gui it sends a packet to the server and increases by 1 https://github.com/Applhau/JujutsuKaisenMod/blob/main/main/java/net/Applhau/jjkmod/client/gui/StatGuiScreen.java (line 91) packet: https://github.com/Applhau/JujutsuKaisenMod/blob/main/main/java/net/Applhau/jjkmod/network/message/IncreaseHealth.java sadly it never saves so it just resets after i relog this is where i put all my capability stuffhttps://github.com/Applhau/JujutsuKaisenMod/tree/main/main/java/net/Applhau/jjkmod/util/data any help on making the system better will be appreciated but im mainly focused on having the capability save.
  2. Hello In the mod I want to find a way to get entities in the direction the player is looking by a couple of blocks or get entities that are in front of the player and deal damage to them. I am able to figure out how to get entities surrounding the player using getEntitiesWithinAABB but I don't know where to start for in front of the player. Please help
  3. I got it working fine now for anyone wanting to know in the future https://paste.ofcode.org/w4JLNFTzFmb4dgPMP5V2Jm
  4. https://paste.ofcode.org/Xt9uSpPpCyCfXTzgS4euxz didnt know how the argument constructors were going to be added so i just left it the same but took out the slashes
  5. For the type someone on a discord server told me that, I knew it was fishy. Another will the resource location make it the black bar. Also i just get the hunger wave on the black bar, so i don't think there is a black bar over it but the hunger texture was replaced with a black bar.
  6. Very sorry about that https://paste.ofcode.org/Q6i48j5uGRNEW9zS3sdCeE
  7. the black bar over the hunger bar
  8. How would I fix this problem
  9. oh welp good thing i didnt can i ask why not tho
  10. Im so special i didn't realize Minecraft was a class and i had to do mc = new Minecraft(); but i dont even have to make it a variable, I could just use Minecraft. Now the hunger bar has a black box ever it. http://paste.ofcode.org/XJk5hNpygrZrEpML4tD9db
  11. I have that field because mc always comes with an error without the field being there http://paste.ofcode.org/ZGLffeGhB56xQNjaVugeQZ I made the method static according to the documentation i think but when i run the code and cant load into my world.
  12. I think i did everything right but no ui https://paste.ofcode.org/8X8FvWyEX9B8Hgx8dnWFWK
  13. I tried these two. They were the only thing i could make out from the code. Is there another class that i need to make because i have no client side classes. https://paste.ofcode.org/g35fDUw9bXjU9RWjQH65M8 https://paste.ofcode.org/LSdfruwADcP6uXzNVTzjgK
  14. So I tried to do that but I got really confused and didn't know how it worked or where to start.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.