i can't fix it

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

KawaiiKitsune

Member
Aug 19, 2018
14
1
0
25
Code:
on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        while ground state of player is false:
            wait 1 tick
        create explosion of force 5 at player
he cant understand that condition: ground state of player is false and i saw it in a video so i know it need to work.
I want to hit the ground with an explosion

FULL CODE:
Code:
command /boom:
    permission: king
    trigger:
        player has permission "king"
        give player 1 stick of sharpness 3 named "&4boom stick"
        send "&6je hebt de &4boom stick &6gekregen"

on rightclick:
    player is holding item named "&4boom stick":
        loop blocks in radius 3 around player:
            play mob spawner flames at loop-block to player
        wait 2 seconds
        push player upwards at speed 5
        create explosion of force 5 at player

on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        while ground state of player is false:
            wait 1 tick
        create explosion of force 5 at player
 
Last edited:
Code:
on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        while ground state of player is false:
            wait 1 tick
        create explosion of force 5 at player
he cant understand that condition: ground state of player is false and i saw it in a video so i know it need to work.
I want to hit the ground with an explosion

FULL CODE:
Code:
command /boom:
    permission: king
    trigger:
        player has permission "king"
        give player 1 stick of sharpness 3 named "&4boom stick"
        send "&6je hebt de &4boom stick &6gekregen"

on rightclick:
    player is holding item named "&4boom stick":
        loop blocks in radius 3 around player:
            play mob spawner flames at loop-block to player
        wait 2 seconds
        push player upwards at speed 5
        create explosion of force 5 at player

on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        while ground state of player is false:
            wait 1 tick
        create explosion of force 5 at player

if not wanting an addon use:
https://skriptlang.github.io/Skript/conditions.html#CondIsOnGround
 
Hiya. You need Skellett for that to work.
Download it here: https://forums.skunity.com/resources/skellett-the-beast-addon.24/

Next time, please go on https://docs.skunity.com & search up what Skript doesn't understand to see what addon you need.

i have skellektt
[doublepost=1587036748,1587036615][/doublepost]

i have try that but is not working
 
i have skellektt
[doublepost=1587036748,1587036615][/doublepost]

i have try that but is not working
Code:
command /boom:
    permission: king
    trigger:
        player has permission "king"
        give player 1 stick of sharpness 3 named "&4boom stick"
        send "&6je hebt de &4boom stick &6gekregen"
 
on rightclick:
    player is holding item named "&4boom stick":
        loop blocks in radius 3 around player:
            play mob spawner flames at loop-block to player
        wait 2 seconds
        push player upwards at speed 5
        create explosion of force 5 at player

on script load:
    set {SafeWhile} to true
    wait 5 ticks
    delete {SafeWhile}

on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        set {_while} to true
        while {_while} is set:
            if player is on the ground:
                delete {_while}
            if {SafeWhile} is set:
                stop
            wait 1 tick
        create explosion of force 5 at player
 
Code:
command /boom:
    permission: king
    trigger:
        player has permission "king"
        give player 1 stick of sharpness 3 named "&4boom stick"
        send "&6je hebt de &4boom stick &6gekregen"
 
on rightclick:
    player is holding item named "&4boom stick":
        loop blocks in radius 3 around player:
            play mob spawner flames at loop-block to player
        wait 2 seconds
        push player upwards at speed 5
        create explosion of force 5 at player

on script load:
    set {SafeWhile} to true
    wait 5 ticks
    delete {SafeWhile}

on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        set {_while} to true
        while {_while} is set:
            if player is on the ground:
                delete {_while}
            if {SafeWhile} is set:
                stop
            wait 1 tick
        create explosion of force 5 at player


okay thnx i go try it
[doublepost=1587043654,1587042186][/doublepost]
okay thnx i go try it
Code:
command /boom:
    permission: king
    trigger:
        player has permission "king"
        give player 1 stick of sharpness 3 named "&4boom stick"
        send "&6je hebt de &4boom stick &6gekregen"
 
on rightclick:
    player is holding item named "&4boom stick":
        loop blocks in radius 3 around player:
            play mob spawner flames at loop-block to player
        wait 2 seconds
        push player upwards at speed 5
        create explosion of force 5 at player

on script load:
    set {SafeWhile} to true
    wait 5 ticks
    delete {SafeWhile}

on leftclick:
    player is holding item named "&4boom stick":
        push player forward at speed 10
        set {_while} to true
        while {_while} is set:
            if player is on the ground:
                delete {_while}
            if {SafeWhile} is set:
                stop
            wait 1 tick
        create explosion of force 5 at player


it works thankyou very much
 
  • Like
Reactions: Lego_freak1999
Status
Not open for further replies.