#error (function, gui)
1 messages · Page 1 of 1 (latest)
clear {area-tp::%{_p}'s uuid%}
set {area-tp::%{_p}'s uuid%} to random integer between 1 and 20
if {beacon-grab::area::used::*} contains {area-tp::%{_p}'s uuid%}:
playRaid({_p})
else:
send "&7Started Raid" to {_p}
send "&7Starting on difficulty (%{-beaconGrab::game::difficulty::%{_p}'s uuid%}%)" to {_p}
set {beacon-grab::beacon::%{_p}'s uuid%} to true
send "&7Teleporting to area (%{area-tp::%{_p}'s uuid%}%)" to {_p}
teleport {_p} to {beacon-grab::area::%{area-tp::%{_p}'s uuid%}%}
add {area-tp::%{_p}'s uuid%} to {beacon-grab::area::used::*}
send "&7Generating terrain" to {_p}
set random block out of {beacon-grab::area::%{area-tp::%{_p}%}%::blocks::*} to beacon
set random block out of {beacon-grab::area::%{area-tp::%{_p}%}%::blocks::*} to diamond block
set {beacon-grab::placed-bg::%{_p}'s uuid%} to true
send "&7Summoning mobs (%{-beaconGrab::game::difficulty::%{_p}'s uuid%}%)" to {_p}
loop {-beaconGrab::game::difficulty::%{_p}'s uuid%} times:
spawn zombie at location of random element out of {beacon-grab::area::%{area-tp::%{_p}%}%::blocks::*}
set helmet of last spawned zombie to chainmail helmet of unbreaking 255
add last spawned zombie to {beacon-grab::spawned::%{_p}'s uuid%::*}
send "&7Giving gear" to {_p}
give {beaconGrab::currentGear::%{_p}'s uuid%::*} to {_p}
send title "&aStarting in 5" to {_p}
wait 1 second
send title "&aStarting in 4" to {_p}
wait 1 second
send title "&aStarting in 3" to {_p}
wait 1 second
send title "&aStarting in 2" to {_p}
wait 1 second
send title "&aStarting in 1" to {_p}
wait 1 second
send title "&a&lRaid started!" to {_
prefix: beacongrab
trigger:
set {_knight} to chest inventory named "&cᴋɴɪɢʜᴛ" with 3 rows
set slot 12 of {_knight} to gold ingot named "&6ᴜᴘɢʀᴀᴅᴇ ɢᴇᴀʀ" with lore " ", "&7» ᴄʟɪᴄᴋ «", " ", "&eᴄʟɪᴄᴋ ᴛᴏ ᴜᴘɢʀᴀᴅᴇ ʏᴏᴜʀ ɢᴇᴀʀ", and " "
set slot 14 of {_knight} to stone sword named "&cᴘʟᴀʏ ʀᴀɪᴅ" with lore " ", "&7» ᴄʟɪᴄᴋ «", " ", "&7ᴅɪғғɪᴄᴜʟᴛʏ: %{-beaconGrab::game::difficulty::%player's uuid%}%" and " "
open {_knight} to player```
if name of event-inventory is "&cᴋɴɪɢʜᴛ":
if index of event-slot = 12:
execute player command "∞"
if index of event-slot = 14:
playRaid(player)```
ytea was too big for one msg lol
the error:
thats too big for me to look at on mobile
oh its like these lines over and over again
at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88) ~[Skript-2.8.5.jar:?]
at ch.njol.skript.lang.Trigger.execute(Trigger.java:52) ~[Skript-2.8.5.jar:?]
at ch.njol.skript.lang.function.ScriptFunction.execute(ScriptFunction.java:86) ~[Skript-2.8.5.jar:?]
at ch.njol.skript.lang.function.Function.execute(Function.java:129) ~[Skript-2.8.5.jar:?]
at ch.njol.skript.lang.function.FunctionReference.execute(FunctionReference.java:311) ~[Skript-2.8.5.jar:?]
at ch.njol.skript.lang.function.EffFunctionCall.execute(EffFunctionCall.java:52) ~[Skript-2.8.5.jar:?]```
@solemn island sry for ping but can u help? bc its important
you made an infinite loop of function calls
ooppsies
wait but like how could i make it that when only the area is used that it will be search again'
idk i'm busy
ok
wait where? here?
function playRaid(p: player):
clear {area-tp::%{_p}'s uuid%}
set {area-tp::%{_p}'s uuid%} to random integer between 1 and 20
if {beacon-grab::area::used::*} contains {area-tp::%{_p}'s uuid%}:
playRaid({_p})```
looks like its this section
dude
if that condition ends up being always true (like if u use all areas)
its gonna infinitely recurve itself
but like that never haplens
ik now why
it doesnt work
rn it didnt even remove that u used the area from the list lol
remove {area-tp::%{_p}'s uuid%} from {beacon-grab::area::used::*}