Petit programme pour mon réacteur nucléaire dans minecraft
mardi 9 décembre 2014 à 13:41HowTommy | Liens et actu en vrac > HowTommy | Liens et actu en vrac 09/12/2014
local reactor
local rf
reactor = peripheral.wrap("back")
print("*** Program Reactor launched ***")
while true do
rf = reactor.getEnergyStored()
print("Current RF : " .. rf)
if reactor.getActive() == true then
print("Reactor is currently ON")
if rf >= 9500000 then
reactor.setActive(false)
print("===> Reactor is now OFF")
end
else
print("Reactor is currently OFF")
if rf <= 500000 then
reactor.setActive(true)
print("===> Reactor is now ON")
end
end
os.sleep(30)
print("----------------------")
end
(Permalink)
Les liens de Kevin Merigot > HowTommy | Liens et actu en vrac 09/12/2014
TERRORISTE ! :D
^^
(Permalink)
HowTommy | Liens et actu en vrac 10/12/2014
Non, pire : ingénieur !
Mais y'a pas de commande .autodestruct sur le réacteur, c'est dommage (à lancer sur les réacteurs des autres :D)
Par contre j'adore le concept du mec qui s'amuse à aller casser son réacteur pendant qu'il fonctionne pour l'agrandir. La radioactivité ? Bof, ça sert à rien.
(Permalink)
local reactor
local rf
reactor = peripheral.wrap("back")
print("*** Program Reactor launched ***")
while true do
rf = reactor.getEnergyStored()
print("Current RF : " .. rf)
if reactor.getActive() == true then
print("Reactor is currently ON")
if rf >= 9500000 then
reactor.setActive(false)
print("===> Reactor is now OFF")
end
else
print("Reactor is currently OFF")
if rf <= 500000 then
reactor.setActive(true)
print("===> Reactor is now ON")
end
end
os.sleep(30)
print("----------------------")
end
(Permalink)
Les liens de Kevin Merigot > HowTommy | Liens et actu en vrac 09/12/2014
TERRORISTE ! :D
^^
(Permalink)
HowTommy | Liens et actu en vrac 10/12/2014
Non, pire : ingénieur !
Mais y'a pas de commande .autodestruct sur le réacteur, c'est dommage (à lancer sur les réacteurs des autres :D)
Par contre j'adore le concept du mec qui s'amuse à aller casser son réacteur pendant qu'il fonctionne pour l'agrandir. La radioactivité ? Bof, ça sert à rien.
(Permalink)