Started by
StakuTheToaster
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, when making items, MCreator allows you to edit the standard attributes often seen on those items (Swords have Attack Speed and Damage, Armor have Armor and Armor Toughness). But what if I want to set other attributes to those items, like Max Health? How can I do this with Custom Code or Procedure?
Edited by StakuTheToaster on Tue, 04/09/2024 - 14:03
I think that this plugin should help.
https://mcreator.net/plugin/88645/azziers-tools
Yes and No, problem here is it's only for 2023.3, and I'm using 2024.1 also it's getting added afterward and is not a default value, means you don't see the attributes in the creative tab only after you put it in your inventory or when its getting update.
Solved it!
If you add to YOURITEMNAMEItem.java
https://pastebin.com/0sKL1FUs
It will add the attributes
Thank you for updating your results.
Is it possible to put the Attributes on curio slot items, when they are in ring slot etc?
Should be possible with the old system back when you just put the attribute on the item without declaring the slot.
I think you could check the curio api code to see how it works, that might make it easier to figure out
Is there a way to add an if condition so if the condition is true it applies the attributes?