Загрузка данных


set b @conveyor
jump 0 always x false
set team 2
set damage 50
fetch buildCount bc team 0 b
op div pr bc 15
setrate pr
op rand fb bc 0
op ceil fb fb 0
op sub fb fb 1
fetch build tb team fb b
sensor x tb @x
sensor y tb @y
op add u y 1
op sub d y 1
op sub l x 1
op add r x 1
getblock block ublock x u
getblock building ubuild x u
getblock block dblock x d
getblock building dbuild x d
getblock block rblock r y
getblock building rbuild r y
getblock block lblock l y
getblock building lbuild l y
jump 27 strictEqual ublock @air
jump 28 always ublock @air
jump 42 strictEqual ubuild null
jump 58 notEqual ubuild null
jump 31 strictEqual rblock @air
jump 32 always ublock @air
jump 46 strictEqual rbuild null
jump 66 notEqual rbuild null
jump 35 strictEqual dblock @air
jump 36 always ublock @air
jump 50 strictEqual dbuild null
jump 74 notEqual dbuild null
jump 39 strictEqual lblock @air
jump 40 always ublock @air
jump 54 strictEqual lbuild null
jump 82 notEqual lbuild null
jump 4 always ublock @air
op rand rbr 4.5 0
op ceil rbr rbr 0
setblock block b x u team rbr
jump 29 always ublock @air
op rand rbr 4.5 0
op ceil rbr rbr 0
setblock block b r y team rbr
jump 33 always ublock @air
op rand rbr 4.5 0
op ceil rbr rbr 0
setblock block b x d team rbr
jump 37 always ublock @air
op rand rbr 4.5 0
op ceil rbr rbr 0
setblock block b l y team rbr
jump 41 always ublock @air
sensor team1 ubuild @team
jump 65 strictEqual team1 team
sensor health ubuild @health
op sub nexthealth health damage
setprop @health ubuild nexthealth
effect drill x u 2 %505050 
effect explosion x u 0.6 %505050 
jump 29 always ublock @air
sensor team1 rbuild @team
jump 73 strictEqual team1 team
sensor health rbuild @health
op sub nexthealth health damage
setprop @health rbuild nexthealth
effect drill r y 2 %505050 
effect explosion r y 0.6 %505050 
jump 33 always ublock @air
sensor team1 dbuild @team
jump 81 strictEqual team1 team
sensor health dbuild @health
op sub nexthealth health damage
setprop @health dbuild nexthealth
effect drill x d 2 %505050 
effect explosion x d 0.6 %505050 
jump 37 always ublock @air
sensor team1 lbuild @team
jump 89 strictEqual team1 team
sensor health lbuild @health
op sub nexthealth health damage
setprop @health lbuild nexthealth
effect drill l y 2 %505050 
effect explosion l y 0.6 %505050 
jump 41 always ublock @air