#Question about error in code
1 messages · Page 1 of 1 (latest)
if name of tool of player is "Spider Stick":
spawn spider 1 block above event-block
set name of last spawned entity to "Spider Boss"
set {spawnedspiderboss} to last spawned entity
set boots of last spawned entity to diamond boots of feather falling 100
on death of spider:
if name of victim = "Spider Boss":
clear {spawnedspiderboss}
on falling block land:
if event-entity is a falling cobweb:
make 75 of dust using dustOption(white, 2) at event-entity with offset vector(3,0,3) with extra 0.1
loop all players in radius 6 around event-entity:
apply slowness 10 without particles to loop-player for 3 seconds
damage loop-player by 2
cancel event
every 15 seconds:
set {_spiderbossloc} to location of {spawnedspiderboss}
loop all players in radius 30 around {_spiderbossloc}:
add loop-player to {_pllist::*}
set {_nearest} to first element of {_pllist::*}
loop {_pllist::*}:
if distance between location of loop-value-1 and {spawnedspiderboss} is less than distance between {spawnedspiderboss} and {_nearest}:
set {_nearest} to loop-value-2
set {_locsp} to location of {_nearest}
push {spawnedspiderboss} up with speed 0.5
push {spawnedspiderboss} vector from {_spiderbossloc} to {_locsp} with speed 3
wait 2 seconds
set {_spiderbossloc} to location of {spawnedspiderboss}
loop 5 times:
make 50 of dust using dustOption(green, 2) at {_spiderbossloc} with offset vector(2.5,0,2.5) with extra 0.00001
loop 4 times:
wait 1 second
loop all players in radius 7 around {_spiderbossloc}:
apply poison 6 without particles to loop-player for 3 seconds
loop 5 times:
make 50 of dust using dustOption(green, 2) at {_spiderbossloc} with offset vector(2.5,0,2.5) with extra 0.00001
every 10 seconds:
set {_spiderbossloc2} to location of {spawnedspiderboss}
loop 4 times:
spawn falling block of cobweb at location 2 blocks above {_spiderbossloc2}
set {_fallingblock} to last spawned entity
set {_chance} to a random integer between 1 and 8
if {_chance} is 1:
set {_dir} to north
if {_chance} is 2:
set {_dir} to south
if {_chance} is 3:
set {_dir} to east
if {_chance} is 4:
set {_dir} to west
if {_chance} is 5:
set {_dir} to northeast
if {_chance} is 6:
set {_dir} to southeast
if {_chance} is 7:
set {_dir} to southwest
if {_chance} is 8:
set {_dir} to northwest
push {_fallingblock} {_dir} with speed 0.6
set {_spiderbossloc2} to location of {spawnedspiderboss}
loop all players in radius 30 around {_spiderbossloc2}:
add loop-player to {_pllist::*}
set {_nearest} to first element of {_pllist::*}
loop {_pllist::*}:
if distance between location of loop-value-1 and {spawnedspiderboss} is less than distance between {spawnedspiderboss} and {_nearest}:
set {_nearest} to loop-value-2
set {_locsp} to location of {_nearest}
loop 10 times:
spawn 1 cave spider at {_spiderbossloc2}
set name of last spawned entity to "Spider Minion"
set maximum health of last spawned entity to 5
heal last spawned entity
wait 10 ticks
push {spawnedspiderboss} up with speed 0.5
push {spawnedspiderboss} vector from {_locsp} to {_spiderbossloc2} with speed 3
```
(sorry for spam you prob wont need the rest of the skript but here ya go anyways)
Bump 🔥
Is my code that cooked
Nobody feels like reading it
If it was working 9 months ago
Check if syntax got updated
If yes update your code according to new syntax
I believe the reason it's not working is because you are missing an addon. The error in the picture, the syntax you used looks like it requires the Skirt addon. If you don't have Skirt anymore, you can use SkBee (https://www.github.com/ShaneBeee/SkBee/wiki)
Ah, tysm
Fair enough
The issue was syntax changing to something easier, tragedy