(SOLVED) How to add attributes to items?

Started by StakuTheToaster on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(SOLVED) How to add attributes to items?
Tue, 04/09/2024 - 14:03 (edited)

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
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes and No, problem here is…
Tue, 04/09/2024 - 00:08

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.

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for updating your…
Sun, 09/22/2024 - 19:01

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.
 

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you could check the…
Sun, 09/22/2024 - 22:24

I think you could check the curio api code to see how it works, that might make it easier to figure out

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add an if…
Tue, 10/08/2024 - 15:05

Is there a way to add an if condition so if the condition is true it applies the attributes?