#How can I give me an item that has a fast attack speed and can break specific blocks faster?

1 messages · Page 1 of 1 (latest)

edgy geyser
#

this Look into the heading this

frozen sapphire
#

you can use the tool component to make it mine tool specific blocks faster

#

if you want to select a custom set of blocks you'll have to raycast to detect which block the player is mining and apply an attribute modifier accordingly

copper remnant
frozen sapphire
#

ooh really? Thats nice

#

I thought it only worked on the default block tags

copper remnant
#

The default block tags are referenced in the default components, but nothing's stopping you from adding your own tags in a custom item

edgy geyser
novel forge
edgy geyser
#

data/namespace/tags/block/your_tag.json

{
  "values": [
    "minecraft:[item]",
...
  ]
}
``` like this format?
finite mapleBOT
edgy geyser
finite mapleBOT
frozen sapphire
#

nope use cooldown is the cooldown you have on throwing enderpearls

edgy geyser
frozen sapphire
#

the attack speed is the speed at which you can attack, it's not the mining speed, thats a different attribute modifier

edgy geyser
#

or fast speed?

frozen sapphire
#

ID: is a unique id for your specific tool
Amount: a number value used in the operation this modifier does
Operation: the operation this modifier does, for example add_value adds the value to the base of this attribute
Slot: determines in which slots this attribute is active
Display: Whether to display this attribute modifier in the tooltip

edgy geyser
frozen sapphire
#

if you want to add 1 to the default attack speed then yea