旋转建筑的逻辑 ——
getlink 待旋转建筑 0
getlink T41 1
getlink T42 2
sensor x3 待旋转建筑 @x
sensor y3 待旋转建筑 @y
sensor p41 T41 @progress
sensor p42 T42 @progress
jump 12 notEqual @璐村惂鐢ㄦ埛_00Q6JQM馃惥 null
ubind @mega
sensor 单位控制器 @unit @controller
jump 12 equal 单位控制器 @this
jump 8 notEqual 单位控制器 @unit
ucontrol approach x3 y3 10 0 0
ucontrol getBlock x3 y3 btype block 0
jump 13 strictEqual btype null
jump 18 lessThanEq p41 p42
ucontrol build x3 y3 btype 3 1
end
ucontrol build x3 y3 btype 0 1
end
getlink 待旋转建筑 0
getlink T41 1
getlink T42 2
sensor x3 待旋转建筑 @x
sensor y3 待旋转建筑 @y
sensor p41 T41 @progress
sensor p42 T42 @progress
jump 12 notEqual @璐村惂鐢ㄦ埛_00Q6JQM馃惥 null
ubind @mega
sensor 单位控制器 @unit @controller
jump 12 equal 单位控制器 @this
jump 8 notEqual 单位控制器 @unit
ucontrol approach x3 y3 10 0 0
ucontrol getBlock x3 y3 btype block 0
jump 13 strictEqual btype null
jump 18 lessThanEq p41 p42
ucontrol build x3 y3 btype 3 1
end
ucontrol build x3 y3 btype 0 1
end