diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:00:20 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-04-01 21:10:04 -0400 |
commit | 888b0ebfec8c2eff9015163549a7e47443cb8665 (patch) | |
tree | 915080159bfaa6ba6e226087c7ce0e8d5464b518 /mesecons/mesecons_delayer | |
parent | da66780a569712c23ae4f2996cfb4608a9f9d69d (diff) | |
download | dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.gz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.bz2 dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.tar.xz dreambuilder_modpack-888b0ebfec8c2eff9015163549a7e47443cb8665.zip |
"explode" all modpacks into their individual components
(you can't have a modpack buried inside a modpack)
Diffstat (limited to 'mesecons/mesecons_delayer')
18 files changed, 0 insertions, 181 deletions
diff --git a/mesecons/mesecons_delayer/depends.txt b/mesecons/mesecons_delayer/depends.txt deleted file mode 100644 index acaa924..0000000 --- a/mesecons/mesecons_delayer/depends.txt +++ /dev/null @@ -1 +0,0 @@ -mesecons diff --git a/mesecons/mesecons_delayer/doc/delayer/description.html b/mesecons/mesecons_delayer/doc/delayer/description.html deleted file mode 100644 index f3a5280..0000000 --- a/mesecons/mesecons_delayer/doc/delayer/description.html +++ /dev/null @@ -1 +0,0 @@ -The delayer delays the signal from the input for a determined time. The time can be set by punching the delayer. Possible delays are: 0.1 seconds, 0.3 seconds, 0.5 seconds and 1 second. You may try to use it for creating songs with the noteblock. diff --git a/mesecons/mesecons_delayer/doc/delayer/preview.png b/mesecons/mesecons_delayer/doc/delayer/preview.png Binary files differdeleted file mode 100644 index c57c728..0000000 --- a/mesecons/mesecons_delayer/doc/delayer/preview.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/doc/delayer/recipe.png b/mesecons/mesecons_delayer/doc/delayer/recipe.png Binary files differdeleted file mode 100644 index ea394aa..0000000 --- a/mesecons/mesecons_delayer/doc/delayer/recipe.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/init.lua b/mesecons/mesecons_delayer/init.lua deleted file mode 100644 index da576ad..0000000 --- a/mesecons/mesecons_delayer/init.lua +++ /dev/null @@ -1,179 +0,0 @@ --- Function that get the input/output rules of the delayer -local delayer_get_output_rules = function(node) - local rules = {{x = 0, y = 0, z = 1}} - for i = 0, node.param2 do - rules = mesecon.rotate_rules_left(rules) - end - return rules -end - -local delayer_get_input_rules = function(node) - local rules = {{x = 0, y = 0, z = -1}} - for i = 0, node.param2 do - rules = mesecon.rotate_rules_left(rules) - end - return rules -end - --- Functions that are called after the delay time - -local delayer_activate = function(pos, node) - local def = minetest.registered_nodes[node.name] - local time = def.delayer_time - minetest.swap_node(pos, {name = def.delayer_onstate, param2=node.param2}) - mesecon.queue:add_action(pos, "receptor_on", {delayer_get_output_rules(node)}, time, nil) -end - -local delayer_deactivate = function(pos, node) - local def = minetest.registered_nodes[node.name] - local time = def.delayer_time - minetest.swap_node(pos, {name = def.delayer_offstate, param2=node.param2}) - mesecon.queue:add_action(pos, "receptor_off", {delayer_get_output_rules(node)}, time, nil) -end - --- Register the 2 (states) x 4 (delay times) delayers - -for i = 1, 4 do -local groups = {} -if i == 1 then - groups = {bendy=2,snappy=1,dig_immediate=2} -else - groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1} -end - -local delaytime -if i == 1 then delaytime = 0.1 -elseif i == 2 then delaytime = 0.3 -elseif i == 3 then delaytime = 0.5 -elseif i == 4 then delaytime = 1.0 end - -boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab - - { -2/16, -7/16, -4/16, 2/16, -26/64, -3/16 }, -- the jeweled "on" indicator - { -3/16, -7/16, -3/16, 3/16, -26/64, -2/16 }, - { -4/16, -7/16, -2/16, 4/16, -26/64, 2/16 }, - { -3/16, -7/16, 2/16, 3/16, -26/64, 3/16 }, - { -2/16, -7/16, 3/16, 2/16, -26/64, 4/16 }, - - { -6/16, -7/16, -6/16, -4/16, -27/64, -4/16 }, -- the timer indicator - { -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs - { 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }} - -minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { - description = "Delayer", - drawtype = "nodebox", - tiles = { - "mesecons_delayer_off_"..tostring(i)..".png", - "mesecons_delayer_bottom.png", - "mesecons_delayer_ends_off.png", - "mesecons_delayer_ends_off.png", - "mesecons_delayer_sides_off.png", - "mesecons_delayer_sides_off.png" - }, - inventory_image = "mesecons_delayer_off_1.png", - wield_image = "mesecons_delayer_off_1.png", - walkable = true, - selection_box = { - type = "fixed", - fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, - }, - node_box = { - type = "fixed", - fixed = boxes - }, - groups = groups, - paramtype = "light", - paramtype2 = "facedir", - sunlight_propagates = true, - is_ground_content = true, - drop = 'mesecons_delayer:delayer_off_1', - on_punch = function (pos, node) - if node.name=="mesecons_delayer:delayer_off_1" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_2", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_off_2" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_3", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_off_3" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_4", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_off_4" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_off_1", param2=node.param2}) - end - end, - delayer_time = delaytime, - delayer_onstate = "mesecons_delayer:delayer_on_"..tostring(i), - sounds = default.node_sound_stone_defaults(), - mesecons = { - receptor = - { - state = mesecon.state.off, - rules = delayer_get_output_rules - }, - effector = - { - rules = delayer_get_input_rules, - action_on = delayer_activate - } - } -}) - - -minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { - description = "You hacker you", - drawtype = "nodebox", - tiles = { - "mesecons_delayer_on_"..tostring(i)..".png", - "mesecons_delayer_bottom.png", - "mesecons_delayer_ends_on.png", - "mesecons_delayer_ends_on.png", - "mesecons_delayer_sides_on.png", - "mesecons_delayer_sides_on.png" - }, - walkable = true, - selection_box = { - type = "fixed", - fixed = { -8/16, -8/16, -8/16, 8/16, -6/16, 8/16 }, - }, - node_box = { - type = "fixed", - fixed = boxes - }, - groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1}, - paramtype = "light", - paramtype2 = "facedir", - sunlight_propagates = true, - is_ground_content = true, - drop = 'mesecons_delayer:delayer_off_1', - on_punch = function (pos, node) - if node.name=="mesecons_delayer:delayer_on_1" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_2", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_on_2" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_3", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_on_3" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_4", param2=node.param2}) - elseif node.name=="mesecons_delayer:delayer_on_4" then - minetest.swap_node(pos, {name = "mesecons_delayer:delayer_on_1", param2=node.param2}) - end - end, - delayer_time = delaytime, - delayer_offstate = "mesecons_delayer:delayer_off_"..tostring(i), - mesecons = { - receptor = - { - state = mesecon.state.on, - rules = delayer_get_output_rules - }, - effector = - { - rules = delayer_get_input_rules, - action_off = delayer_deactivate - } - } -}) -end - -minetest.register_craft({ - output = "mesecons_delayer:delayer_off_1", - recipe = { - {"mesecons_torch:mesecon_torch_on", "group:mesecon_conductor_craftable", "mesecons_torch:mesecon_torch_on"}, - {"default:cobble","default:cobble", "default:cobble"}, - } -}) diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png Binary files differdeleted file mode 100644 index 2e49d31..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_bottom.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png Binary files differdeleted file mode 100644 index 0242deb..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_off.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png Binary files differdeleted file mode 100644 index 19ae0cb..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_ends_on.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png Binary files differdeleted file mode 100644 index 7372b37..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_1.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png Binary files differdeleted file mode 100644 index e34f0ac..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_2.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png Binary files differdeleted file mode 100644 index 091adbc..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_3.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png Binary files differdeleted file mode 100644 index 7ecc9b6..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_off_4.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png Binary files differdeleted file mode 100644 index 61f52f2..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_1.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png Binary files differdeleted file mode 100644 index 7bd363f..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_2.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png Binary files differdeleted file mode 100644 index b93f725..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_3.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png Binary files differdeleted file mode 100644 index ca90a1e..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_on_4.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png Binary files differdeleted file mode 100644 index 79f3d59..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_off.png +++ /dev/null diff --git a/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png b/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png Binary files differdeleted file mode 100644 index 1c8edaa..0000000 --- a/mesecons/mesecons_delayer/textures/mesecons_delayer_sides_on.png +++ /dev/null |