#Shifting pain :(

1 messages · Page 1 of 1 (latest)

pure girder
#

How would I make it when someone shifts with a certain item in their hand every entity in a 10-block radius gets the withering effect

buoyant crystalBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you

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

#
⚠️ You already have a question open!

Don't forget to close or resolve your old questions once you're done with them. It makes our lives much easier! :D

Open question: #1258315020090085457

whole saffron
#

Do you want them to right click the item?

pure girder
#

no just crouch with it in their hand

#

here is the predicate im using

whole saffron
#

You will have to tick, but it is possible

pure girder
#

{ "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "flags": { "is_sneaking": true }, "equipment": { "mainhand": { "items": [ "minecraft:heart_of_the_sea" ], "nbt": "{amazing:1b}" } } } }

pure girder
whole saffron
#

You will have to run a command every tick

pure girder
#

oh

#

ok

whole saffron
#

It shouldn't be too expensive in resources

pure girder
#

what would I do?

whole saffron
pure girder
#

What would the command be?

cold berryBOT
#

You would run something like
ticking function

execute as @a[predicate=namespace:sneaking_with_item] at @s run function namespace:apply_wither

apply_wither

effect give @e[distance=..10] minecraft:wither 1 0
pure girder
#

How would I make it that it doesnt effect the user?

cold berryBOT
#

Probably with
ticking function

execute as @a[predicate=namespace:sneaking_with_item] at @s run function namespace:apply_wither

apply_wither

effect give @e[distance=0.001..10] minecraft:wither 1 0
whole saffron
#

This puts one second of wither level one