#(sixtwotwo) custom items

22 messages · Page 1 of 1 (latest)

nimble sun
#

How would I go about changing the attributes of an item? I am aware of the "ADD_NUMBER" things and how they make the weapon have for example "+2 Attack Damage" when i really just want to change the attribute altogether and not add a number into the existing attribute

sacred wharfBOT
#

(sixtwotwo) custom items

sacred wharfBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

cobalt spear
#

!m itemtag.attribute_modifiers

fervent marshBOT
# cobalt spear !m itemtag.attribute_modifiers

(Property) Controls the attribute modifiers of an item, with key as the attribute name and value as a list of modifiers,
where each modifier is a MapTag containing keys 'name', 'amount', 'slot', 'operation', and 'id'.
For use as a mechanism, this is a SET operation, meaning pre-existing modifiers are removed.
For format details, refer to !language attribute modifiers.

Group

Properties

Object

ItemTag

Input

MapTag

Tags

<ItemTag.attribute_modifiers> (Property) Controls the attribute modifiers of an item, with key as ...

nimble sun
#

!language attribute modifiers

fervent marshBOT
# nimble sun !language attribute modifiers

In minecraft, the "attributes" system defined certain core numerical values on entities, such as max health or attack damage.
The value of an "attribute" is determined by its "base value" modified mathematically by each of its "attribute modififers".
"Attribute modifiers" can be added either directly to the entity, or onto items - when on an item, an entity can equip it into the correct slot to automatically apply the modifier.

These can be read via such tags as !tag EntityTag.attribute_modifiers, !tag ItemTag.attribute_modifiers,
!tag EntityTag.has_attribute, !tag EntityTag.attribute_value, !tag EntityTag.attribute_base_value, !tag EntityTag.attribute_default_value, ...

These can be modified by such mechanisms as <@link mechanism EntityTag.attri...

Group

Properties

dense dawn
#

!t itemtag.attribute_base_value

fervent marshBOT
#
Possible Confusion

Did you mean to search for entitytag.attribute_base_value?

dense dawn
#

you have to go about adjusting it manually according to the itme

#

i cant find the tag for the base value of an item though

#

or you can go with the detect when player hits an entity, cancel, and apply your custom dmg thete

#

!e player damages entity

fervent marshBOT
dense dawn
#

!e entity damaged by ent

fervent marshBOT
# dense dawn !e entity damaged by ent
Group

Entity

Event Lines

<entity> damaged by <entity> <entity> damaged (by <cause>) <entity> damages <entity>

Switches

with:<item> to only process the event when the item used to cause damage (in the damager's hand) is a specified item.
type:<entity> to only run if the entity damaged matches the entity input.
block:<block-matcher> to only run if the damage came from a block that matches the given material or location matcher.

Triggers

when an entity is damaged.

Has Player

when the damager or damaged entity is a player. Cannot be both. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

when the damager or damaged entity is an NPC. Cannot be both.

Context

<context.entity> returns the EntityTag that was damaged.
<context.damager> returns the EntityTag damaging the other entity, if any.
<context.damager_block> returns the LocationTag of a block that damaged the entity, if any.
<context.cause> returns an ElementTag of reason the entity was damaged - see !language damage cause for causes.
<context.damage> returns an ElementTag(Decimal) of the amount of damage dealt.
<context.final_damage> returns an ElementTag(Decimal) of the amount of damage dealt, after armor is calculated.
<context.projectile> returns a EntityTag of the projectile, if one caused the event.
<context.damage_type_map> returns a MapTag the damage dealt by a specific damage type with keys: B...
<context.was_critical> returns 'true' if the damage was a critical hit. (Warning: this value is ca...

Determine

ElementTag(Decimal) to set the amount of damage the entity receives.
"CLEAR_MODIFIERS" to zero out all damage modifiers other than "BASE", effectively making damage == final_damage.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Examples

Examples too long to display... Check the website for more examples

dense dawn
#

!c hurt

fervent marshBOT
# dense dawn !c hurt
Group

entity

Syntax

hurt (<#.#>) ({player}/<entity>|...) (cause:<cause>) (source:<entity>/<location>)

Short Description

Hurts the player or a list of entities.

Description

Does damage to a list of entities, or to any single entity.

If no entities are specified: if there is a linked player, the command targets that. If there is no linked
player but there is a linked NPC, the command targets the NPC. If neither is available, the command will error.

Does a specified amount of damage usually, but, if no damage is specified, does precisely 1HP worth of damage (half a heart).

Optionally, specify (source:<entity>) to make the system treat that entity as the attacker.
...

analog perchBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@nimble sun