#Help me with cancel event!

1 messages · Page 1 of 1 (latest)

dull flume
#

And it doesn't work

flat surge
#

learn english

#

elaborate

#

"i did boss" "how can i do that"

#

what

dull flume
#

lol

dull flume
dull flume
dull flume
flat surge
#

what

#

do what?

dull flume
#

oh

#

How can I do:

if enderdragon alive:

#

cancel event

#

but with skript language

dull flume
dull flume
flat surge
#

Jesus be patient

dull flume
flat surge
dull flume
#

oh

dull flume
flat surge
#

did u even read it

#

if (entity) is not dead:

flat surge
#

elaborate

#

give more info

#

but nvm now

#

that is not even

#

you haven't indented correctly anyway..

#

yea-

outer imp
#

Or, maybe if you send the code, I could give it to you.

dull flume
flat surge
#

send code

dull flume
flat surge
#

bro-

#

!indent

vagrant girderBOT
#

Indentation in Skript

In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.

A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:

With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:

flat surge
#

and

#

remove ()

dull flume
#

what is indent? sorry idk english very well... 😦

flat surge
#

it shows you a example

dull flume
flat surge
#

indent

#

and

dull flume
#

I did what the example said

jade garden
#

!indent

vagrant girderBOT
#

Indentation in Skript

In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.

A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:

With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:

jade garden
#

Geez

#

Not that hard

flat surge
#
every 10 seconds:
  if enderdragon is not alive:
    spawn enderdragon at location(0, 75, 0, world "world_the_end")
    set display name of last spawned ender dragon to "&c&lBOSS"
#

indent is a lil off

#

there

dull flume
#

thank you so much i will try it

#

?

flat surge
#
every 10 seconds:
  set {enderdragon} to a enderdragon
  if {enderdragon} is not alive:
    spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
    set display name of {enderdragon} to "&c&lBOSS"
#

try that

dull flume
#

its still spawning another dragon

flat surge
#

oh wait

#

uh

#
on load:
   set {enderdragon} to a enderdragon

every 10 seconds:
  if {enderdragon} is not alive:
    spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
    set display name of {enderdragon} to "&c&lBOSS"

try that

dull flume
#

still spawning

flat surge
#

send your code

dull flume
flat surge
#
on load:
   set {enderdragon} to a enderdragon
   if {enderdragonSpawned} is not set:
     set {enderdragonSpawned} to false

every 10 seconds:
  if {enderdragonSpawned} = false:
    set {enderdragonSpawned} to true
    spawn {enderdragon} at location(0, 75, 0, world "world_the_end")
    set display name of {enderdragon} to "&c&lBOSS"

on death:
  if victim is {enderdragon}:
    give attacker 1 dragon egg named "&d&lBoss's Egg"
    set {enderdragonSpawned} to false

try that

dull flume
#

the enderdragon doesnt spawn

flat surge
#

try now

dull flume
#

it is working!!!!!!!!!

#

I love you so much!!!!!!!!!!

#

thank you!!!!!!!!

flat surge
#

uh I dont love you but you're welcome!

vagrant girderBOT
#

minehut Spoonfeeding

When helping other players, please refrain from spoon-feeding the information. This is where you give someone the solution without letting them figure it out and learn from their mistakes. It might solve their issue but it won’t allow them to learn how to fix it in the future.

Instead, you should work with them and help them learn to figure out the solution on their own.

outer imp
#

!!

#

OMG

#

lol

#

🤓