Add nuclear reactor

Still needs some work. I am pushing it to get ideas and feedback.
Also fix some bugs in the LV coal generator that were found while making
the nuclear reactor.

Conflicts:
	technic/init.lua
This commit is contained in:
kpoppel
2013-07-11 01:04:58 +02:00
committed by ShadowNinja
parent 13e8857f1a
commit 3055270a7c
11 changed files with 245 additions and 7 deletions

View File

@ -1,4 +1,4 @@
-- Th coal driven EU generator.
-- The coal driven EU generator.
-- A simple device to get started on the electric machines.
-- Inefficient and expensive in coal (200EU 16 ticks)
-- Also only allows for LV machinery to run.
@ -103,6 +103,7 @@ minetest.register_abm(
else
burn_time = burn_time - 1
meta:set_int("burn_time",burn_time)
meta:set_string("infotext", "Coal Electric Generator ("..math.floor(burn_time/16*100).."%)")
end
end
@ -119,6 +120,8 @@ minetest.register_abm(
meta:set_int("burn_time",burn_time)
hacky_swap_node (pos,"technic:generator_active")
meta:set_int("LV_EU_supply", 200) -- Give 200EUs
else
meta:set_int("LV_EU_supply", 0)
end
end
end