#Help

1 messages · Page 1 of 1 (latest)

meager boltBOT
#

Code Blocks

To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:

```
Code here
```

fallow vine
#
on load:
  set victim to enderdragon
  kill all enderdragons
  set enderdragon to false

every 1 hour:
    if victim is false:
        set victim to true
        spawn enderdragon at location(0, 75, 0, world "world_the_end") 
        set display name of last spawned enderdragon to "&c&lBOSS"
        if victim is not set:
            set victim to false
on death:
  if victim is enderdragon:
    give attacker 1 dragon egg named "&d&lDragon's Egg"
    set enderdragon to false
    send "&a&l--------------------------------------" to all players
    send "" to all players
    send "&a%attacker% killed the &c&lBOSS!" to all players
    send "" to all players
    send "&a&l--------------------------------------" to all players

on spawn of enderdragon:
   send "&c&l---------------------------------------" to all players
   send "" to all players
   send "&c&lBoss spawned!" to all players
   send "" to all players
   send "&c&l---------------------------------------" to all players
   
on damage:
    if damaged mob is enderdragon:
        give attacker 1 diamond
#

What do I need to change here?

loud portal
#

Wtf is that

#

First of all all you variables need {}

fallow vine
loud portal
#

It just means that you will have to save the enderdradon everytime the server reloads

#

Its not an error, just a warning