#(daxz_) set attributes!?!?!

29 messages · Page 1 of 1 (latest)

flat laurel
#

chat im lost,

(Property) Sets the attribute modifiers of an item, with key as the attribute name and value as a list of modifiers,
For use as a mechanism, this is a SET operation, meaning pre-existing modifiers are removed.

so.. how do i set when the operation is still add?? or am i thinking wrong

split roostBOT
#

(daxz_) set attributes!?!?!

split roostBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

inland jungle
#

Can you provide a little bit more background info @flat laurel

#

If you want the simple answer, it is in the description you provided.

#

For use as a mechanism, this is a SET operation, meaning pre-existing modifiers are removed.

#

It will kill all pre-existing modifiers. An item has a base value which you add your modifier on.

#

The operation is always "add", you can decrease by providing negative values.

flat laurel
#

what is the base then?? -3?

#

to add onto for the weapons

inland jungle
#

The values on tools are hardcoded ye

flat laurel
#

the base vals

#

also what does +1.6 attack speed mean in minecraft terms??

#

its it adding 1.6 from 0

#

or subtracting 1.6

#

or like the axe has 0.8 attack speed

#

i dont get it

inland jungle
#

A players attack speed is 4.

#

You can get it via

#

!t entity.attribute_base_value

feral frigateBOT
inland jungle
#

An iron axe sets this speed to 0.9

#

So on a technical level, it has an attribute modifier of -3.1 generic attack speed

#

!t entity.attribute_value

feral frigateBOT