#im making a spleef skript for my event however im having trouble wv the excuting the checkwinner
1 messages · Page 1 of 1 (latest)
broadcast "&d&lFACTIONFRENZIE: &dEvent In 5 Minutes!"
broadcast "&d&lFACTIONFRENZIE: &dDo /eventjoin To Join!"
broadcast "&d&lFACTIONFRENZIE: &dWARNING ANY LOOT TAKEN IN WILL BE LOST!"
wait 10 second
execute console command "teleportqueue"
execute console command "eventspade"
execute console command "/fill 141 282 -270 137 278 -274 air "
wait 5 second
execute console command "/fill 141 282 -270 137 278 -274 minecraft:barrier hollow "
wait 7 second
send title "&2&l 1st FLOOR BREAKS IN" to {queue::*}
wait 1 second
send title "&2&l 3!" to {queue::*}
wait 1 second
send title "&2&l 2!" to {queue::*}
wait 1 second
send title "&2&l 1!" to {queue::*}
wait 1 second
execute console command "floorbreak1"
wait 7 second
send title "&2&l 2nd FLOOR BREAKS IN" to {queue::*}
wait 1 second
send title "&2&l 3!" to {queue::*}
wait 1 second
send title "&2&l 2!" to {queue::*}
wait 1 second
send title "&2&l 1!" to {queue::*}
wait 1 second
execute console command "floorbreak2"
wait 7 second
send title "&2&l 3rd FLOOR BREAKS IN" to {queue::*}
wait 1 second
send title "&2&l 3!" to {queue::*}
wait 1 second
send title "&2&l 2!" to {queue::*}
wait 1 second
send title "&2&l 1!" to {queue::*}
execute console command "checkforwinner"
wait 1 second
execute console command "floorbreak3" ``` main part of code
execute console command "checkforloser"
command /eventspade:
trigger:
give player diamond shovel
command /eventjoin:
trigger:
add player to {queue::*}
send "&badded to queue" to player
command /tpevent:
permission: op
trigger:
teleport player to location(139.8,279,-271.6,"world")
command /teleportqueue:
permission: op
trigger:
teleport {queue::*} to location(139.8,279,-271.6,"world")
wait 10 minutes
delete {queue::*}
command /floorbreak1:
permission: op
trigger:
execute console command "/fill 178 266 -244 103 266 -360 air "
wait 60 second
execute console command "/fill 178 266 -244 103 266 -360 snow_block"
command /floorbreak2:
permission: op
trigger:
execute console command "/fill 178 260 -244 103 260 -360 air "
wait 60 second
execute console command "/fill 178 260 -244 103 260 -360 snow_block"
command /floorbreak3:
permission: op
trigger:
execute console command "/fill 178 254 -244 103 254 -360 air "
wait 60 second
execute console command "/fill 178 254 -244 103 254 -360 snow_block"
command /checkforwinner:
permission: op
trigger:
if player is in world("world"):
execute console command "warp crates"
# teleport player to location(166.5,158,-181.5,"main")
execute console command "crate key give %players% god 1"
execute console command "crate key give %players% epic_crate 2"
command /checkforloser:
permission: op
trigger:
if player's y-coord is less than 254:
if player is in {queue::*}:
remove player from {queue::*}```
other parts
Whats the issue? The commands arent triggered?
- did you try debugging? You may need the “/“ in the string
Use loops instead of copy-pasting lines
ive tried that but i think its smt to do wv the it doesnt like performing things on the players
as the floorbreaks work fine
the strings say smt slightly different so cant loop
broadcast “starting in %11 - loop-number%s!”
wait 1 second```
okay ty i can do that
but all that does it shorten the code right?
my main issue is due to the player commands not working but i will ad that ty
is there a way to specify the list/queue like in python how u can easily append pop and see it is there a way i could potentially change it to smt like a dictionary where i can treat each player seperatly?
Whats the issue? The commands arent triggered? - sorry missed this part yea the commands wv anything triggering on the player arent triggering
Well when you execute the console command “warp crates”, thats trying to warp the console, not the player.
Use the teleport effect or make the player execute it
And don’t execute the loser console command every one second
Just call it once when the game ends
Or when someone falls
what is this code
Idk, if i was making spleef id just check on damage caused by fall and then check the block below/y level
smart but i tried exuting tp commands the issue is down to the every time: it doesnt like using player commands in peridical events
shambles lmao