#Item effects while wearing

1 messages · Page 1 of 1 (latest)

viscid sorrelBOT
#
**Someone will come and help soon!**

💬 While you wait, take this time to provide more context and details. What are you trying to achieve overall - maybe there's an easier way to solve this problem

🙇 If it's been 30 minutes and you're still waiting for someone to help, hit the Summon Helpers button to call the official helpers here

✅ Once your question has been resolved (or you no longer need it), hit the Resolve Question button or run /resolve

carmine ginkgoBOT
#

How would i do this:

How can you get it so that when you wear an item, it gives you effects?

Jump

[Go to message!](#1158136492099637268 message)

chilly epoch
#

Check if the player has the item equipped using a predicate -> give effect

obtuse tinsel
#

How do i do that, to give an effect i mean

#

and also would that be put in tick.json?

chilly epoch
#

tick.json references a function (.mcfunction), you put your commands in that

#

To give an effect you just use the effect command

remote boneBOT
#
📜 /effect

effect clear [<targets>] [<effect>]

Removes an effect.

effect give <targets> <effect> [<seconds>] [<amplifier>] [<hideParticles>]

Gives an effect.

effect give <targets> <effect> infinite [<amplifier>] [<hideParticles>]

Gives an effect with infinite duration, which displays as in the GUI.

chilly epoch
#

To check if a predicate is true, you can use a selector like this one:

@a[predicate=path:to/predicate]
obtuse tinsel
#

oh ok thx

#

how do i make a custom item for it though?

chilly epoch
#

You can’t make actual custom items so you take regular items and give them a new model/texture

#

You can probably search for "minecraft data pack custom item" and find tons of videos/written tuts

obtuse tinsel
#

Yeah but want armor and the only one i can find is a resource pack not a datapack

chilly epoch
#

Or you use armor trims

#

There may be a better guide out there but this should suffice

obtuse tinsel
chilly epoch
#

nbt

#

but just use custom nbt

#

since the player could just remove the trim

obtuse tinsel
#

so how do i add that to this:

  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "type": "minecraft:player"
  }
}```
forest coral
#

oh wait

#

oops

#

misread your message