Sweeping Edge particle

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Aug 26, 2020
14
0
1
30
I want to create a sweeping edge particle infront of the player when they click with an iron hoe, but the only way i can find out how to do it is by running it through the player or console and I don't want to turn off sendCommandFeedback.

on rightclick with iron hoe:
cancel event
if name of tool is "&7Iron Scythe":
set {_scytheDamage} to random integer between 1 and 8
set {_scythe} to difference between {scythe.%player%.cooldown} and now
if {_scythe} is less than 10 seconds:
message "&cYou need to wait &r&e&n%difference between 10 seconds and {_scythe}%&r&c before you can use that skill again!"
else:
loop all entities in radius 5 around location of executor:
if loop-entities isn't "%player%":
make player damage loop-entity by {_scytheDamage} # in half hearts
play sound "entity.player.attack.sweep" with volume 1 and pitch 1 at all players for all players
# make player execute command "particle minecraft:sweep_attack ^ ^1 ^0.8"
# show "minecraft:sweep_attack" at %player%
set {scythe.%player%.cooldown} to now
exit loop
 
Status
Not open for further replies.