prison_escape: type: task script: - teleport Guard1_1_Pos - teleport - teleport Guard1_3_Pos - teleport - teleport Guard1_5_Pos - look yaw:0 - adjust head_angle:0 - look yaw:125 - adjust head_angle:130 - look yaw:-90 - adjust head_angle:-90 - invisible true - invisible false - teleport PrisonSpawn_1 - adjust gamemode:adventure - look yaw:90 pitch:45 - adjust head_angle:47 - flag in_prison - modifyblock prison_barrier_1 air # ^ Used for the npc detection - cast blindness duration:3s amplifier:1 hide_particles - cast slow duration:13s amplifier:6 hide_particles - cast jump duration:13s amplifier:150 hide_particles - wait 1s - walk speed:0.4 - wait 2s - actionbar "You find yourself in a prison, surrounded by guards..." - wait 4s - actionbar "You notice that your Stun Cuffs are loose and are able to move around." - wait 1.5s - actionbar "You notice that your Stun Cuffs are loose and are able to move around." - wait 3.5s - title title:Escape fade_out:1.5s stay:2s targets: - adjust walk_speed:0.1 - wait 2s - walk speed:0.4 - flag not_caught - narrate "Make sure the Guards don't see you!" - playsound sound:entity_experience_orb_pickup - define has_been_at_wrong_loc false - define has_been_at_exit false # - while !<[has_been_at_exit]>: # - if contains && !<[has_been_at_wrong_loc]>: # - actionbar "It seems this area is blocked. Keep looking..." # - define has_been_at_wrong_loc true #- if contains : # - actionbar "There appears to be a small entrance, try crawling through" # - wait 1s # - narrate "To crawl, look straight down and double crouch. Crouch again to get up." # - playsound sound:entity_experience_orb_pickup # - define has_been_at_wrong_loc true # - define has_been_at_exit true # - if !<[has_been_at_wrong_loc]>: # - playeffect effect:dragon_breath at:wrong_particle_loc_1 offset:0.2,0.4,0.2 quantity:3 # - playeffect effect:dragon_breath at:right_particle_loc_1 offset:0.2,0.4,0.2 quantity:3 # - wait 0.8s # click_speederbike: type: world events: on player right clicks barrier flagged:escape_prison: # teleport player to the next scene - flag escape_prison:! - teleport -18.5,70,-270.5,world - wait 10s - teleport PrisonSpawn_1 exits_prison: type: world events: on player enters outside_1 flagged:in_prison: - flag in_prison:! - modifyblock prison_barrier_1 barrier - wait 0.3s - narrate "Guard <>> Stop right there!" - adjust walk_speed:0 - cast jump duration:5s amplifier:150 hide_particles - look duration:4s - wait 2s - invisible false - playeffect effect:explosion_normal at: offset:0.1,1,0.1 quantity:20 - invisible true # shoot - wait 1s - look duration:3 - wait 1s - look duration:2s - wait 0.5s - look - narrate "Cal Kestis <>> Quick! Get on!" - wait 1s - narrate "Right click the Speeder Bike" - playsound sound:entity_experience_orb_pickup - wait 1s - adjust walk_speed:0.2 - flag escape_prison guard_attacks_player: type: world events: on sentinel npc attacks flagged:in_prison: - determine passively cancelled - ratelimit 10s - narrate "Guard <>> Stop right there!" - adjust walk_speed:0 - cast jump duration:5s amplifier:150 hide_particles - wait 0.5s - look - look duration:3 - actionbar "You were caught by a Guard. Try again..." - wait 2s - look duration:2s - wait 1s - cast blindness amplifier:1 duration:2 - wait 1s - run prison_escape - determine cancelled