Custom Weapon

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

007L

Member
Nov 8, 2023
4
0
1
24
Thank you in advance,
I would Like a skript that makes the user holding the sword called "&5Dragon Katana" not take any explosion damage while holding the sword and make the player deal explosion damage on right click with a cool down of 30 seconds and the explosion should do 3 hearts of damage regardless of the protection level please make the skript function on based on the name without taking in consideration of the lore, and the explosion radius should be 8 blocks
Thanks Again
 
I haven't tested it, but it should work.
Code:
on right click with "&5Dragon Katana":
    cancel event
    set {_cooldown::%player's uuid%} to now
    if {_cooldown::%player's uuid%} is at least 30 seconds:
        create explosion at player with power 3 and radius 8
        set {_cooldown::%player's uuid%} to now