Mindustry

Mindustry

Otillräckligt med betyg
Pulsar mining logic mini
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Taggar: schematic
Filstorlek
Lades upp
613.000 B
7 dec @ 7:31
1 ändringsnotis ( visa )

Abonnera för att ladda ner
Pulsar mining logic mini

Beskrivning
Attention! This processor is only for starting the game! It is recommended to replace it with a more powerful one at the first opportunity.

This processor operates in two modes: comparative (sorter) and priority (inverted-sorter). The name indicates what each mode is responsible for. The processor can also avoid using a unit controlled by another processor and can clear groups of unused units. The processor will stop if no pulsars is found and will send them to the core if it is filled with resources.

Processor ver. 1.9
_________________________

Processor code:

ubind @pulsar
jump 4 notEqual @unit null
control config sorter1 null 0 0 0
end
sensor Check @unit @flag
jump 9 equal Check 0
sensor Check @unit @controlled
jump 0 notEqual Check 0
ucontrol flag 0 999 0 0 0
ucontrol boost 1 999 0 0 0
sensor Check sorter1 @type
jump 14 equal Check @sorter
sensor Ore sorter1 @config
set @counter 30
ulocate building core 0 @copper Xpos Ypos 0 Core
sensor Res1 Core @copper
sensor Check Core @lead
set Ore @copper
jump 21 lessThan Res1 Check
set Ore @lead
set Res1 Check
sensor Check Core @sand
jump 25 lessThan Res1 Check
set Ore @sand
set Res1 Check
sensor Check Core @coal
jump 29 lessThan Res1 Check
set Ore @coal
set Res1 Check
control config sorter1 Ore 0 0 0
sensor Check Core @itemCapacity
jump 40 greaterThanEq Res1 Check
sensor Check @unit @firstItem
jump 35 equal Check null
jump 40 notEqual Check Ore
ulocate ore core 0 Ore Xpos Ypos 0 0
ucontrol approach Xpos Ypos 5 0 0
ucontrol mine Xpos Ypos 5 0 0
sensor Check @unit @totalItems
jump 0 lessThan Check 20
ulocate building core 0 @copper Xpos Ypos 0 Core
ucontrol stop 0 0 0 0 0
ucontrol move Xpos Ypos 0 0 0
ucontrol itemDrop Core 9999 0 0 0