From 01d72237c3acdff0e6959f6b7749b5e5e428386c Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 5 Jan 2016 17:11:13 -0600 Subject: [PATCH] Finish renaming --- init.lua | 73 ++++++++++-------- ...n_off.png => digistuff_digibutton_off.png} | Bin ...ton_on.png => digistuff_digibutton_on.png} | Bin ...des.png => digistuff_digibutton_sides.png} | Bin textures/digistuff_digidetector.png | Bin 0 -> 737 bytes .../{digimese.png => digistuff_digimese.png} | Bin 6 files changed, 40 insertions(+), 33 deletions(-) rename textures/{digibutton_off.png => digistuff_digibutton_off.png} (100%) rename textures/{digibutton_on.png => digistuff_digibutton_on.png} (100%) rename textures/{digibutton_sides.png => digistuff_digibutton_sides.png} (100%) create mode 100644 textures/digistuff_digidetector.png rename textures/{digimese.png => digistuff_digimese.png} (100%) diff --git a/init.lua b/init.lua index 421779f..3c37055 100644 --- a/init.lua +++ b/init.lua @@ -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 similarity index 100% rename from textures/digibutton_off.png rename to textures/digistuff_digibutton_off.png diff --git a/textures/digibutton_on.png b/textures/digistuff_digibutton_on.png similarity index 100% rename from textures/digibutton_on.png rename to textures/digistuff_digibutton_on.png diff --git a/textures/digibutton_sides.png b/textures/digistuff_digibutton_sides.png similarity index 100% rename from textures/digibutton_sides.png rename to textures/digistuff_digibutton_sides.png diff --git a/textures/digistuff_digidetector.png b/textures/digistuff_digidetector.png new file mode 100644 index 0000000000000000000000000000000000000000..42902f348448ba423a0c0dc249d10a87dc5eeeb2 GIT binary patch literal 737 zcmV<70v`Q|P)#`;|(i-|rh^%H{Iq<)!Po z#+boiP^naIZf+Q3<#M^*ZsT}7?)7>AkR(YIMV#{}iXI;y<2Y7IB}tN|X&8ox7{_rC z1UQ{e(=@Hu>(lAfaU5feQfhvFUMU3tT5DrWu~;<5SeDglwQzNH_3G-15Mo)D)>>ZXW#Pqyk%Lqva+JJ=9~k-QYl|3%-s!U z7q#XZnqo9@$&L=t;|2~JRkisU%o~^?;QYmF^BKpRbl+$BjOgpg8Jt5xba4r5G8DWzOo zTnqyL-XFvNV_B9ELTl~1E(SrMlp=%}V-RsP3IVGB(pfx8sSu*q>tU@{^L;-%@CSO; zC;-4xkpVz1m(yA+rEIW~lu|>f)|ygk+csm2c%J8Z-onCyQpy;^IZx9xL*qE6loCS5