Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

SDOAJ

Members
  • Posts

    2
  • Joined

  • Last visited

SDOAJ's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.