Gun

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

    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.

Ranik_

Member
Aug 29, 2021
4
0
1
Hi, I am a starter skripter and I want to create a Scythe that shoots wither skulls and does specific damage and explodes when hit I tried to search for gun skripts but it works only for snowballs and arrows and not for wither skulls it does it's normal wither skull damage and explodes with it's normal power and How do I add cooldown?.
Code:
on right click with netherite hoe:
    if name of player's held item is "&0&lBlack Quartz Scythe":
        set {Black Quartz Scythe.bullets.%player%} to 1
        shoot wither skull from the player at speed 1
        push last shot wither skull upwards with speed 0.06
on damage:
    if event-projectile is wither skull:
        {Black Quartz Scythe.bullets.%shooter%} is 1:
            damage victim by 8
on projectile hit:
    wait 3 ticks
    if event-projectile is an wither skull:
        create a safe explosion of force 2 at event-location
 
Last edited:
1. Use list variables instead of normal ones
2. For stuff like this use metadata, there are some tutorials using SkBee on here
3. It does its normal stuff, because it's still a wither skull.
4. You can add a cooldown using this example:
Code:
on rightclick:
    if difference between now and {cooldown} is more than 1 minute:
        set {cooldown} to now
        send "works"
    else:
        send "on cooldown"
 
Status
Not open for further replies.