Constant Sneaking Action Need Help!

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

drabspirit

New Member
Jan 25, 2020
6
0
0
23
Hiya! Right now I'm trying to make a rocket boots of sorts, I've got this done as a bare bones, but I can't for the life of me figure out how to constantly have it pushing the player while shifting. I tried to do some loops, but I don't really understand them too well. Thanks for the help!

Code:
on sneak toggle:
    if player is sneaking:
        if block under player is air:
            "%lore of players's boots%" contains "&eAngel":
                if player's pitch is between -90 and -50:
                    play sound "block.lava.extinguish" with volume 0.2 at player
                    push player upwards with force 0.8
                    push player forward with force 0.2
                if player's pitch is between -50 and 40:
                    play sound "block.lava.extinguish" with volume 0.2 at player
                    push player upwards with force 0.3
                    push player forward with force 0.6
                if player's pitch is between 40 and 90:
                    play sound "block.lava.extinguish" with volume 0.2 at player
                    push player downwards with force 0.05
                    push player forward with force 0.2
                else:
                    stop
 
Yes, as far as I know I have skRayFall, SkQuery, Sk-NBeeT, and Skellett. My friend sent me his server files as I wanted to get into script.

EDIT
Actually I might have a couple more, so heres a screenshot. I'm also on 1.14.
zjBA8jK.png
 
Yes, as far as I know I have skRayFall, SkQuery, Sk-NBeeT, and Skellett. My friend sent me his server files as I wanted to get into script.

EDIT
Actually I might have a couple more, so heres a screenshot. I'm also on 1.14.
zjBA8jK.png
ok ty i was about to ask you what version is your server
 
Hey yeah I'm in 1.14 if you didnt see my message before
[doublepost=1580153562,1580086589][/doublepost]Bump still need help!
 
Give this a shot

Code:
on sneak toggle:
    if player is sneaking:
        while player is sneaking:
            if block under player is air:
                "%lore of players's boots%" contains "&eAngel":
                    if player's pitch is between -90 and -50:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.8
                        push player forward with force 0.2
                    if player's pitch is between -50 and 40:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.3
                        push player forward with force 0.6
                    if player's pitch is between 40 and 90:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player downwards with force 0.05
                        push player forward with force 0.2
                else:
                    stop
 
Give this a shot

Code:
on sneak toggle:
    if player is sneaking:
        while player is sneaking:
            if block under player is air:
                "%lore of players's boots%" contains "&eAngel":
                    if player's pitch is between -90 and -50:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.8
                        push player forward with force 0.2
                    if player's pitch is between -50 and 40:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.3
                        push player forward with force 0.6
                    if player's pitch is between 40 and 90:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player downwards with force 0.05
                        push player forward with force 0.2
                else:
                    stop
idk why but this skript does crash my server
EDIT : Here's log https://pastebin.com/Z9HXWT4s
EDIT2 : this skript crashed my server+ minecraft :<
 
Last edited:
try this?

Code:
on sneak toggle:
    if player is sneaking:
        while player is sneaking:
            if block under player is air:
                "%lore of players's boots%" contains "&eAngel":
                    if player's pitch is between -90 and -50:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.8
                        push player forward with force 0.2
                    if player's pitch is between -50 and 40:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player upwards with force 0.3
                        push player forward with force 0.6
                    if player's pitch is between 40 and 90:
                        play sound "block.lava.extinguish" with volume 0.2 at player
                        push player downwards with force 0.05
                        push player forward with force 0.2
                    wait 1.5 seconds
                else:
                    stop
 
Status
Not open for further replies.