Right Click Smite

  • 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!

UnseenGamer

Member
Dec 11, 2019
3
0
1
18
Category: Admin Tools

Suggested name: Smitestorm

Spigot/Skript Version: 1.14

What I want:
Whenever you activate this using the command you can right click and it smites/summons lightning wherever your looking

Ideas for commands: /smitestorm toggle - /ss toggle

Ideas for permissions: skript.smitestorm

When I'd like it by: within a week
 
Last edited:
Code:
command /smitestorm [<text>]:
  aliases: /ss
  permission: skript.smitestorm
  permission message: &cYou don't have access to that command!
  trigger:
    if arg 1 is "toggle":
      if {smitestorm.%player%} is not set:
        set {smitestorm.%player%} to 1
        send "&aActivated Smite Storm."
      else:
        delete {smitestorm.%player%}
        send "&cDeactivated Smite Storm."      
    else:
      send "&7USAGE: &8/&7smitestorm toggle" to player
     
     
on right click:
  if {smitestorm.%player%} is set:
    make player execute "smite"

for this to work
1) You need to have Essentials.
2) You must hold an item when right clicking.
 
Thanks, I tried doing this myself but It wasn't working because I was trying to use a hand instead of an item