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.
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.
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