diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-22 22:28:28 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-22 22:28:28 -0400 |
commit | 9c9457e1f50ebdd943695a4cce6b88fa552370f3 (patch) | |
tree | 4f6002b266179e0dd1639affffd4f09a18dfcad5 /technic/machines/creative.lua | |
parent | 3c47f229fcbdb7cad28bacbc579516bf3ecf6c03 (diff) | |
download | dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.gz dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.bz2 dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.tar.xz dreambuilder_modpack-9c9457e1f50ebdd943695a4cce6b88fa552370f3.zip |
update castles modpack, blox, bobblocks, coloredwood, technic,
gloopblocks, homedecor, ilights, led marquee, plasticbox, solidcolor,
stained_glass, unified bricks, and unified dyes
In most of these, the update is to shift over to the new "old" coloring
paradigm in Unified Dyes. See its forum thread for details.
Diffstat (limited to 'technic/machines/creative.lua')
-rw-r--r-- | technic/machines/creative.lua | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/technic/machines/creative.lua b/technic/machines/creative.lua index 7c09a80..39abe74 100644 --- a/technic/machines/creative.lua +++ b/technic/machines/creative.lua @@ -1,40 +1,41 @@ local S = technic.getter minetest.register_abm({ - nodenames = {"group:technic_lv","group:technic_mv","group:technic_hv"}, + nodenames = {"group:technic_lv", "group:technic_mv", "group:technic_hv"}, label = "Run Machines", interval = 1, chance = 1, action = function(pos,node) local meta = minetest.get_meta(pos) - local pos1 = {x=pos.x,y=pos.y-1,z=pos.z} + local pos1 = {x=pos.x, y=pos.y-1, z=pos.z} local tier = technic.get_cable_tier(minetest.get_node(pos1).name) local meta = minetest.get_meta(pos) if not tier then - meta:set_int("active",0) + meta:set_int("active", 0) return end - meta:set_int("active",1) - meta:set_int("LV_EU_input",meta:get_int("LV_EU_demand")) - meta:set_int("MV_EU_input",meta:get_int("MV_EU_demand")) - meta:set_int("HV_EU_input",meta:get_int("HV_EU_demand")) + meta:set_int("active", 1) + meta:set_int("LV_EU_input", meta:get_int("LV_EU_demand")) + meta:set_int("MV_EU_input", meta:get_int("MV_EU_demand")) + meta:set_int("HV_EU_input", meta:get_int("HV_EU_demand")) local nodedef = minetest.registered_nodes[node.name] if nodedef and nodedef.technic_run then - nodedef.technic_run(pos,node) + nodedef.technic_run(pos, node) end end, }) minetest.register_lbm({ - nodenames = {"technic:switching_station","technic:power_monitor"}, + nodenames = {"technic:switching_station", "technic:power_monitor"}, name = "technic:update_infotext", label = "Update switching station / power monitor infotext", - action = function(pos,node) + run_at_every_load = true, + action = function(pos, node) local meta = minetest.get_meta(pos) if node.name == "technic:switching_station" then - meta:set_string("infotext",S("Switching Station")) + meta:set_string("infotext", S("Switching Station")) elseif node.name == "technic:power_monitor" then - meta:set_string("infotext",S("Power Monitor")) + meta:set_string("infotext", S("Power Monitor")) end end, }) |