Ariozo Posted September 30, 2022 Share Posted September 30, 2022 Hello, I want to ask how to properly add an attribute modifier to an ItemStack. I know that it is possible with method "addAttributeModifier". However I have small problem with it, for example looks like it replaces/overrides original modifiers (it is easily visible with items enchanted with books). Is there better way to do add them? Quote Link to comment Share on other sites More sharing options...
warjort Posted September 30, 2022 Share Posted September 30, 2022 Do don't explain what you are trying to do. Try ItemAttributeModifierEvent Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.