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.

SDOAJ

Members
  • Joined

  • Last visited

Everything posted by SDOAJ

  1. All of the examples I can find in other mods of doing so set StructureSettings.DEFAULTS to a new ImmutableMap: https://github.com/xyroc/DungeonCrawl/blob/1.17/src/main/java/xiroc/dungeoncrawl/init/ModStructures.java#L85 https://github.com/TheGrimsey/StoneholmForge/blob/main/src/main/java/net/thegrimsey/stoneholm/SHStructures.java#L26 https://github.com/FINDERFEED/SolarCraftRepository/blob/master/src/main/java/com/finderfeed/solarforge/world_generation/structures/SolarForgeStructures.java#L75 However, that field is final for me: Is this field supposed to be final? Is there a different way of registering structures that I don't know about? The class which I am trying to register the structure in can be found here.
  2. I'm trying to create an item that when used, removes 5 seconds of a harmful potion effect every tick. I'm able to get a list of the player's harmful potion effects and choose one at random to decrease the duration of, but I can't figure out how to actually decrease the duration. From what I can see, all the accessors of the duration field in EffectInstance are private except for the tick() method, which causes the potion to perform its effect as well. So is there any way to decrease the duration of an active potion effect?

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.