Started by
wolferwow
on
Topic category: Help with MCreator software
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?
maybe Item NBT Tags?
I looked at nbt tags, im not sure if its possible to use them to edit items tbh
it is, on the Item section of procedures
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
item values?
Sorry, I meant either give items attributes, or edit items.
yeah, well on what way?
item attributes if possible
could you be more specific?
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.
so basically give it more damage?
yea
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
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