From b16f0a5bac3769dfb8867ee887ff3d38cdd29a34 Mon Sep 17 00:00:00 2001 From: Eric Date: Sat, 12 Oct 2019 18:44:29 -0400 Subject: [PATCH] A bit of cleanup --- mesecons_slippyblocks/init.lua | 7 ------- mesecons_stickyblocks_flat/init.lua | 9 +++------ mesecons_stickyblocks_linear/init.lua | 12 +++--------- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/mesecons_slippyblocks/init.lua b/mesecons_slippyblocks/init.lua index c9fc73c..87a2f07 100644 --- a/mesecons_slippyblocks/init.lua +++ b/mesecons_slippyblocks/init.lua @@ -4,9 +4,6 @@ description = "Slippy block)", drawtype = "nodebox", tiles = {"mesecons_slippyblocks.png"}, - walkable = true, - pointable = true, - diggable = true, buildable_to = true, groups = {cracky=3,oddly_breakable_by_hand=3}, drop = "mesecons_slippyblocks:slippy_block", @@ -47,10 +44,6 @@ description = "Slippy block)", drawtype = "nodebox", tiles = {"mesecons_slippyblocks.png"}, - walkable = true, - pointable = true, - diggable = true, - buildable_to = false, groups = {cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory = 1}, drop = "mesecons_slippyblocks:slippy_block", node_box = { diff --git a/mesecons_stickyblocks_flat/init.lua b/mesecons_stickyblocks_flat/init.lua index e6b65a9..023da14 100644 --- a/mesecons_stickyblocks_flat/init.lua +++ b/mesecons_stickyblocks_flat/init.lua @@ -14,7 +14,7 @@ minetest.register_node("mesecons_stickyblocks_flat:sticky_block_xz", { "mesecons_stickyblocks_flat_sticky.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky = 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.xz) do @@ -36,7 +36,6 @@ minetest.register_node("mesecons_stickyblocks_flat:sticky_block_xz", { on_punch = function(pos, node, player, pointed_thing) if string.find(player:get_wielded_item():get_name(), "sticky_") then minetest.swap_node(pos, {name = "mesecons_stickyblocks_flat:sticky_block_xy" }) - --minetest.chat_send_all("The word sticky_ was found.") end end, }) @@ -55,7 +54,7 @@ minetest.register_node("mesecons_stickyblocks_flat:sticky_block_xy", { "mesecons_stickyblocks_flat.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1, not_in_creative_inventory = 1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky = 1, not_in_creative_inventory = 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.xy) do @@ -95,7 +94,7 @@ minetest.register_node("mesecons_stickyblocks_flat:sticky_block_yz", { "mesecons_stickyblocks_flat_sticky.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1, not_in_creative_inventory = 1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky = 1, not_in_creative_inventory = 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.yz) do @@ -144,8 +143,6 @@ mesecon.rules.yz = { {x = 0, y = 0, z = 1}, {x = 0, y = 0, z = -1}, } - - minetest.register_craft({ diff --git a/mesecons_stickyblocks_linear/init.lua b/mesecons_stickyblocks_linear/init.lua index e05c1b5..14b4211 100644 --- a/mesecons_stickyblocks_linear/init.lua +++ b/mesecons_stickyblocks_linear/init.lua @@ -15,7 +15,7 @@ minetest.register_node("mesecons_stickyblocks_linear:sticky_block_x", { "mesecons_stickyblocks_linear.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1, not_in_creative_inventory = 1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky = 1, not_in_creative_inventory = 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.x) do @@ -52,7 +52,7 @@ minetest.register_node("mesecons_stickyblocks_linear:sticky_block_y", { "mesecons_stickyblocks_linear.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky= 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.y) do @@ -90,7 +90,7 @@ minetest.register_node("mesecons_stickyblocks_linear:sticky_block_z", { "mesecons_stickyblocks_linear_sticky.png", }, is_ground_content = false, - groups = {choppy=3, oddly_breakable_by_hand=2, sticky=1, not_in_creative_inventory = 1}, + groups = {choppy = 3, oddly_breakable_by_hand = 2, sticky = 1, not_in_creative_inventory = 1}, mvps_sticky = function (pos, node) local connected = {} for _, r in ipairs(mesecon.rules.z) do @@ -117,20 +117,14 @@ minetest.register_node("mesecons_stickyblocks_linear:sticky_block_z", { mesecon.rules.y = { {x = 0, y = 1, z = 0}, {x = 0, y = -1, z = 0}, - {x = 0, y = 0, z = 0}, - {x = 0, y = 0, z = 0}, } mesecon.rules.x = { {x = 1, y = 0, z = 0}, {x = -1, y = 0, z = 0}, - {x = 0, y = 0, z = 0}, - {x = 0, y = 0, z = 0}, } mesecon.rules.z = { - {x = 0, y = 0, z = 0}, - {x = 0, y = 0, z = 0}, {x = 0, y = 0, z = 1}, {x = 0, y = 0, z = -1}, }