diff options
-rw-r--r-- | init.lua | 73 | ||||
-rw-r--r-- | textures/digistuff_digibutton_off.png (renamed from textures/digibutton_off.png) | bin | 444 -> 444 bytes | |||
-rw-r--r-- | textures/digistuff_digibutton_on.png (renamed from textures/digibutton_on.png) | bin | 459 -> 459 bytes | |||
-rw-r--r-- | textures/digistuff_digibutton_sides.png (renamed from textures/digibutton_sides.png) | bin | 434 -> 434 bytes | |||
-rw-r--r-- | textures/digistuff_digidetector.png | bin | 0 -> 737 bytes | |||
-rw-r--r-- | textures/digistuff_digimese.png (renamed from textures/digimese.png) | bin | 565 -> 565 bytes |
6 files changed, 40 insertions, 33 deletions
@@ -1,16 +1,16 @@ -digibutton = {} +digistuff = {} -digibutton.button_turnoff = function (pos) +digistuff.button_turnoff = function (pos) local node = minetest.get_node(pos) - if node.name=="digibutton:button_on" then --has not been dug - minetest.swap_node(pos, {name = "digibutton:button_off", param2=node.param2}) + if node.name=="digistuff:button_on" then --has not been dug + minetest.swap_node(pos, {name = "digistuff:button_off", param2=node.param2}) minetest.sound_play("mesecons_button_pop", {pos=pos}) end end -minetest.register_node("digibutton:digimese", { +minetest.register_node("digistuff:digimese", { description = "Digimese", - tiles = {"digimese.png"}, + tiles = {"digistuff_digimese.png"}, paramtype = "light", light_source = 3, groups = {cracky = 3, level = 2}, @@ -25,15 +25,15 @@ minetest.register_node("digibutton:digimese", { {x = 0, y = 0, z =-1}}}} }) -minetest.register_node("digibutton:button", { +minetest.register_node("digistuff:button", { drawtype = "nodebox", tiles = { - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_off.png" + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_off.png" }, paramtype = "light", paramtype2 = "facedir", @@ -75,15 +75,15 @@ minetest.register_node("digibutton:button", { sounds = default.node_sound_stone_defaults(), }) -minetest.register_node("digibutton:button_off", { +minetest.register_node("digistuff:button_off", { drawtype = "nodebox", tiles = { - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_off.png" + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_off.png" }, paramtype = "light", paramtype2 = "facedir", @@ -106,27 +106,27 @@ minetest.register_node("digibutton:button_off", { receptor = {} }, groups = {dig_immediate=2, not_in_creative_inventory=1}, - drop = "digibutton:button", + drop = "digistuff:button", description = "Digilines Button (off state - you hacker you!)", on_rightclick = function (pos, node, clicker) local meta = minetest.get_meta(pos) digiline:receptor_send(pos, digiline.rules.default, meta:get_string("channel"), meta:get_string("msg")) - minetest.swap_node(pos, {name = "digibutton:button_on", param2=node.param2}) + minetest.swap_node(pos, {name = "digistuff:button_on", param2=node.param2}) minetest.sound_play("mesecons_button_push", {pos=pos}) - minetest.after(0.5, digibutton.button_turnoff, pos) + minetest.after(0.5, digistuff.button_turnoff, pos) end, sounds = default.node_sound_stone_defaults(), }) -minetest.register_node("digibutton:button_on", { +minetest.register_node("digistuff:button_on", { drawtype = "nodebox", tiles = { - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_sides.png", - "digibutton_on.png" + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_sides.png", + "digistuff_digibutton_on.png" }, paramtype = "light", paramtype2 = "facedir", @@ -150,7 +150,7 @@ minetest.register_node("digibutton:button_on", { receptor = {} }, groups = {dig_immediate=2, not_in_creative_inventory=1}, - drop = 'digibutton:button', + drop = 'digistuff:button', on_rightclick = function (pos, node, clicker) local meta = minetest.get_meta(pos) digiline:receptor_send(pos, digiline.rules.default, meta:get_string("channel"), meta:get_string("msg")) @@ -161,7 +161,7 @@ minetest.register_node("digibutton:button_on", { }) minetest.register_craft({ - output = "digibutton:digimese", + output = "digistuff:digimese", recipe = { {"digilines:wire_std_00000000","digilines:wire_std_00000000","digilines:wire_std_00000000"}, {"digilines:wire_std_00000000","default:mese","digilines:wire_std_00000000"}, @@ -170,10 +170,17 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "digibutton:button", + output = "digistuff:button", recipe = { {"mesecons_button:button_off"}, {"mesecons_luacontroller:luacontroller0000"}, {"digilines:wire_std_00000000"} } }) + +minetest.register_alias("digibutton:button","digistuff:button") +minetest.register_alias("digibutton:button_off","digistuff:button_off") +minetest.register_alias("digibutton:button_on","digistuff:button_on") +minetest.register_alias("digibutton:digimese","digistuff:digimese") + + diff --git a/textures/digibutton_off.png b/textures/digistuff_digibutton_off.png Binary files differindex 9e4506b..9e4506b 100644 --- a/textures/digibutton_off.png +++ b/textures/digistuff_digibutton_off.png diff --git a/textures/digibutton_on.png b/textures/digistuff_digibutton_on.png Binary files differindex 1466179..1466179 100644 --- a/textures/digibutton_on.png +++ b/textures/digistuff_digibutton_on.png diff --git a/textures/digibutton_sides.png b/textures/digistuff_digibutton_sides.png Binary files differindex 9b79b57..9b79b57 100644 --- a/textures/digibutton_sides.png +++ b/textures/digistuff_digibutton_sides.png diff --git a/textures/digistuff_digidetector.png b/textures/digistuff_digidetector.png Binary files differnew file mode 100644 index 0000000..42902f3 --- /dev/null +++ b/textures/digistuff_digidetector.png diff --git a/textures/digimese.png b/textures/digistuff_digimese.png Binary files differindex aa6b97b..aa6b97b 100644 --- a/textures/digimese.png +++ b/textures/digistuff_digimese.png |