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.

Kettle5000

Members
  • Joined

  • Last visited

  1. I'm struggling so hard to find a way to allow players to use my config file to modify where structures are being created. I have checked for events in the documentation but none of them seem to be of use for this. Why pointing Biome is not enough? Well Certain mods like Lost cities use vanilla generation, causing many structures to spawn in, completely disrupting the dimension generation. Is there a way to control dimensional spawning of structures? Please Im still trying very hard to find how to do this.
  2. I wanted to add an attribute modifier to an item everytime it gets an enchantment and updating its value to the level of the enchantment I was trying to use the addModififier method from the ItemAttributeModifierEvent it seems to work without removing the rest of the attributes however whevener i try to get the multimap containing the modifiers, its just not there for some weird reason the modifier is added to the item but if you try to get the multimap via getModifiers method, its not there. Which ends up adding the same modifier over and over everytime the event is fired is this intended to work this way? is there any other way to add a modifier to an item consistently? to reproduce this: just add max health modifier to a chesplate and use the methods mentioned here.
  3. I have been trying to find a way to add an attribute modifier to an item when it gets an enchantment or increases its level, the method addModifier seems to do the job however for some reason everytime i try to check if the item has the new attribute, the multimap does not contain the added modifier, why? is this intended? without this the item gets the same modifier added over and over again

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.