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.

TristanaGW

Members
  • Joined

  • Last visited

Everything posted by TristanaGW

  1. Apologies if this is a really silly question, but the storage stuff is handled by the writeNBT/readNBT stuff right? I've had that class up for the whole time and it's still not worked. Or is that *just* for read/writing on the client? Do I need to do some intense reading into the SimplImpl stuff?
  2. Hey, I'm working on a mod based on Dark Souls, just as a little project for fun and to teach myself a little about Java. I'm trying to make a Humanity counter and I've looked all over different tutorials and the documentation, but I can't figure out for the life of me what the problem might be. It could be a quirk I'm missing about Java, or it could just be I've implemented my capabilities bad. I honestly have no clue. Anyhow, here's the code that I'm using for my HUD element renderer: (apologies for the sloppy and silly code quirks of mine lmao. i'll rewrite it if i wanna get serious with it) As you can see in the code, I've added a test line to swap out with the Humanity variable get with the player health, and that works just fine. I run the debugger, swap it to that and it goes to twenty and counts down when damaged, and goes back up when regen'd. But swapping the Humanity variable back in pops it back down to 0. (I just tried it while on a server too and Humanity didn't work on that either...) If the Humanity scripts need to be seen, let me know, but just know that it's largely based off of the MCHorse code here. (I should mention my event handler doesn't work either, but the methods I have for adding and reducing Humanity work just fine and send my test messages and saves the Humanity to the playerdata NBT (or world data in the case of single player which may be its own problem but I wont worry about it for now.)) Anyway, knowing me I've probably missed something, but hopefully you've got enough to help me troubleshoot my way out of this. Thanks in advance!

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.