Item Attributes

Started by wolferwow on

Topic category: Help with MCreator software

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Item Attributes

Is there any way to have a procedure apply an attribute to a tool that is currently held in hand? I wanna try avoiding creating items with different variations, and hopefully I could just directly edit the item that is being held in hand by applying attributes to it through a procedure. I don't mind coding if its impossible to do with the blocks with mcreator. Anyone have any idea how I can do that?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
maybe Item NBT Tags?
Tue, 11/02/2021 - 20:04

maybe Item NBT Tags?

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I looked at nbt tags, im not…
Tue, 11/02/2021 - 20:21

I looked at nbt tags, im not sure if its possible to use them to edit items tbh

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it is, on the Item section…
Tue, 11/02/2021 - 20:32

it is, on the Item section of procedures

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
any chance you can show me…
Tue, 11/02/2021 - 21:33

any chance you can show me what you mean? I can only use number, text, and logic. How would I use one of these to edit items values? sorry for asking so many questions

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
item values?
Tue, 11/02/2021 - 21:40

item values?

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I meant either give…
Tue, 11/02/2021 - 21:42

Sorry, I meant either give items attributes, or edit items.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yeah, well on what way?
Tue, 11/02/2021 - 21:44

yeah, well on what way?

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
item attributes if possible
Tue, 11/02/2021 - 21:47

item attributes if possible

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you be more specific?
Tue, 11/02/2021 - 21:49

could you be more specific?

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sure, I want a procedure…
Tue, 11/02/2021 - 21:55

sure, I want a procedure which checks if a specific item (diamond sword) is held in hand. If it is, I want the item to receive an attribute (generic.attack_damage). I dont have a problem checking for the item in hand, the problem is giving the item attack damage attribute.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so basically give it more…
Tue, 11/02/2021 - 21:59

so basically give it more damage?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well, you weren't specific…
Tue, 11/02/2021 - 22:16

well, you weren't specific enough so I am just gonna put this procedure:

entity attacked trigger

if item in main hand of source entity = diamond_sword

 do deal (whatever extra damage amount you want to deal) to event/target entity type: GENERIC

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also had the same problem,…
Sun, 01/02/2022 - 01:49

I also had the same problem, when I create sword type items attackSpeed ​​is always set to 1.6 while I want it to be higher, I tried fixing its json code but the result is still the same, so I think to set attribute when holding it but I don't know how to add items attribute