variables: {raid.already} = false command /raidstart []: trigger: if player has permissions "raid.start": if {raid.already} = true: send "Jest juz raid!" stop if {raid.already} = false: set {raid.already} to true clear {raid.players::*} execute console command "raidspawn" stop command /raidsetloc []: trigger: if player has permissions "raid.setloc": set {raid.loc} to location of player send "Ustawiono!" stop command /tpraid []: trigger: if player has permissions "raid.tp": teleport player to {raid.loc} command /raidspawn []: permission: raid.spawn trigger: set {_percent} to 300 loop 300 times: wait 1 second remove 1 from {_percent} loop all players in {raid.players::*}: send loop-player title "Giant zrespi sie za..." with subtitle "%{_percent}% sek" spawn 1 giant at {raid.loc} set the last spawned entity's max health to 2000 heal last spawned entity set the spawned entity's display name to "&4&l2000HP" every 10 second: loop all entities in "world": if loop-entity is giant: if loop-entity's display name contains "HP": loop 10 times: spawn 1 zombie at {raid.loc} set the last spawned entity's max health to 20 heal last spawned entity set the spawned entity's display name to "Sluga Gianta" command /raid []: trigger: if {raid.already} = true: if {raid.players::*} contains "%player%": send "Zapisales sie juz!" stop else: add "%player%" to {raid.players::*} teleport player to {raid.loc} send "Zapisales sie na raid!" stop on death: if victim is a giant: if victim's display name contains "HP": loop all players in {raid.players::*}: chance of 10%: add 1 stick named "Za zabicie gianta" to loop-player's inventory on damage: if victim is a giant: if victim's display name contains "HP": set victim's display name to "&4&l%victim's health%HP"