Item Attributes

Started by wolferwow on

Topic category: Help with MCreator software

Last seen on 06:25, 8. Dec 2021
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?

Last seen on 04:28, 26. Jan 2024
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?

Last seen on 06:25, 8. Dec 2021
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

Last seen on 04:28, 26. Jan 2024
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

Last seen on 06:25, 8. Dec 2021
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

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

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

item values?

Last seen on 06:25, 8. Dec 2021
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.

Last seen on 04:28, 26. Jan 2024
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?

Last seen on 06:25, 8. Dec 2021
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

Last seen on 04:28, 26. Jan 2024
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?

Last seen on 06:25, 8. Dec 2021
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.

Last seen on 04:28, 26. Jan 2024
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?

Last seen on 06:25, 8. Dec 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yea
Tue, 11/02/2021 - 22:11

yea

Last seen on 04:28, 26. Jan 2024
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

Last seen on 13:18, 5. Jan 2024
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