#help im tryna make an egg launcher type

1 messages · Page 1 of 1 (latest)

signal zodiac
#

its not working very well

#

options:
cooldown: 30
range: 30

on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player%} is not set or difference between now and {zeus.cooldown.%player%} >= {@cooldown} seconds:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now
else:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player

safe ploverBOT
#

AʟᴡᴀʏᴢPʟᴀʏᴢ suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

manic dagger
gray ibex
#

^

#

Please use lists

signal zodiac
#
    cooldown: 30
    range: 30

on rightclick:
    if player's tool is warped fungus on a stick:
        if name of player's tool is "&e&fZeus's Strike":
            if {zeus.cooldown.%player%} is not set or difference between now and {zeus.cooldown.%player%} >= {@cooldown} seconds:
                set {_target} to the first entity in line of sight of player within {@range} blocks
                if {_target} is a player:
                    strike lightning at {_target}
                else:
                    strike lightning at targeted block of player within {@range} blocks
                set {zeus.cooldown.%player%} to now
            else:
                set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
                send "&cWait %{_remaining}%s before using this item again!" to player```
signal zodiac
signal zodiac
manic dagger
# signal zodiac
on damage of player:
    # Runs if at least one condition below is true
    if any:
        victim is player("AlwayzPlayz")
        victim has permission "skript.bypass"
    then:
        cancel event

    # Runs only if every condition below is true
    if all:
        {punish::%victim%} is true
        victim is player("Crebs")
    then:
        strike lightning at victim
#

use the if any example and both will get fixed

#
            if {zeus.cooldown.%player%} < {@cooldown} seconds:
                set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
                send "&cWait %{_remaining}%s before using this item again!" to player
            else:
                set {_target} to the first entity in line of sight of player within {@range} blocks
                if {_target} is a player:
                    strike lightning at {_target}
                else:
                    strike lightning at targeted block of player within {@range} blocks
                set {zeus.cooldown.%player%} to now
#

or you can do this

signal zodiac
#

idk where to add it and to remove it

manic dagger
#

(line 8)

#

pls try to understand what I did btw

#

I just reversed the condition and shift the code

gray ibex
#

You can also just (cooldown ? now) > now:

signal zodiac
# manic dagger that's not hard

options:
cooldown: 30
range: 30

on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if difference between now and {zeus.cooldown.%player%} < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now

#

this is correct?

#
    cooldown: 30
    range: 30

on rightclick:
    if player's tool is warped fungus on a stick:
        if name of player's tool is "&e&fZeus's Strike":
            if {zeus.cooldown.%player% < {@cooldown} seconds:
                set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
                send "&cWait %{_remaining}%s before using this item again!" to player
            else:
                set {_target} to the first entity in line of sight of player within {@range} blocks
                if {_target} is a player:
                    strike lightning at {_target}
                else:
                    strike lightning at targeted block of player within {@range} blocks
                set {zeus.cooldown.%player%} to now```
gray ibex
#

what did you do to get flagged as a spammer?

gray ibex
#

you still need to use lists

manic dagger
#

close the bracket here and ^^

signal zodiac
# gray ibex

i dmed loads of kids about trading in steal a brainrot

#

but can u help me

#

or @manic dagger

gray ibex
#

you just need to fix your indentation

#

looks like you ahve 1 too many

signal zodiac
gray ibex
#

or forgot a : somehwere

signal zodiac
#

say in polish?

#

or describe

gray ibex
gray ibex
signal zodiac
#

can u help me fix itr

#

please

gray ibex
#

no, you can fix it yourself.....

signal zodiac
#

i never learn indentation

gray ibex
#

the error literally tells you what to do

signal zodiac
#

ok i fix indentation but can u help with ;ome 11

#

line

gray ibex
#

"Expected 12 spaces but found 16"
=> Change (16) to (12)

signal zodiac
# gray ibex "Expected 12 spaces but found 16" => Change ` ` (16) to ` ...

options:
cooldown: 30
range: 30

on rightclick:
if player's tool is warped fungus on a stick:
if name of player's tool is "&e&fZeus's Strike":
if {zeus.cooldown.%player% < {@cooldown} seconds:
set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
send "&cWait %{_remaining}%s before using this item again!" to player
else:
set {_target} to the first entity in line of sight of player within {@range} blocks
if {_target} is a player:
strike lightning at {_target}
else:
strike lightning at targeted block of player within {@range} blocks
set {zeus.cooldown.%player%} to now

#

work?

#
    cooldown: 30
    range: 30

on rightclick:
    if player's tool is warped fungus on a stick:
        if name of player's tool is "&e&fZeus's Strike":
            if {zeus.cooldown.%player% < {@cooldown} seconds:
                set {_remaining} to {@cooldown} - difference between now and {zeus.cooldown.%player%} parsed as integer
                send "&cWait %{_remaining}%s before using this item again!" to player
            else:
                set {_target} to the first entity in line of sight of player within {@range} blocks
                if {_target} is a player:
                    strike lightning at {_target}
                else:
                    strike lightning at targeted block of player within {@range} blocks
                set {zeus.cooldown.%player%} to now```
gray ibex
#

format code, dont ping me

signal zodiac
gray ibex
#

its probably fixed, was likely related to indentation! go reload and see if you have more errors!

#

stop pinging please

signal zodiac
gray ibex
#

yes you are.... replies ping

#

turn it off

signal zodiac
signal zodiac
raw panther
#

lol

gray ibex
#

its one click. Or hold shift as you press reply

signal zodiac
#

or no

#

the helmet

#

or is it other game