From 74eefc270ab4df6b03a365e0ac91569d470eadbc Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 20 Jan 2013 13:01:40 +0100 Subject: Fix piston drops and craft recipe --- mesecons_pistons/init.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'mesecons_pistons/init.lua') diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index a51e16e..6222605 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -156,7 +156,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_on_box, selection_box = piston_on_box, @@ -233,7 +233,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_on_box, selection_box = piston_on_box, @@ -305,7 +305,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", mesecons_piston = pistonspec_normal_up, mesecons = {effector={ action_on = piston_on, @@ -326,7 +326,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_up_on_box, selection_box = piston_up_on_box, @@ -381,7 +381,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", mesecons_piston = pistonspec_sticky_up, mesecons = {effector={ action_on = piston_on, @@ -402,7 +402,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_up_on_box, selection_box = piston_up_on_box, @@ -475,7 +475,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", mesecons_piston = pistonspec_normal_down, mesecons = {effector={ action_on = piston_on, @@ -496,7 +496,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_down_on_box, selection_box = piston_down_on_box, @@ -547,7 +547,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", mesecons_piston = pistonspec_sticky_down, mesecons = {effector={ action_on = piston_on, @@ -568,7 +568,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", after_dig_node = piston_remove_pusher, node_box = piston_down_on_box, selection_box = piston_down_on_box, @@ -670,7 +670,7 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_down_sticky_on", piston_u --craft recipes minetest.register_craft({ - output = '"mesecons_pistons:piston_normal" 2', + output = '"mesecons_pistons:piston_normal_off" 2', recipe = { {"default:wood", "default:wood", "default:wood"}, {"default:cobble", "default:steel_ingot", "default:cobble"}, @@ -679,7 +679,7 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "mesecons_pistons:piston_sticky", + output = "mesecons_pistons:piston_sticky_off", recipe = { {"mesecons_materials:glue"}, {"mesecons_pistons:piston_normal"}, -- cgit v1.2.3 From 5b5e919683c2932592a7879fba29c4f2f0289e1c Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 8 Feb 2013 14:36:20 -0500 Subject: Make load times faster by avoiding inventorycube and wielditem creation in technical blocks such as active wires and various piston orientations. --- mesecons_pistons/init.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'mesecons_pistons/init.lua') diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 6222605..07102b8 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -153,6 +153,8 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -230,6 +232,8 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -303,6 +307,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_normal_off", @@ -323,6 +329,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -379,6 +387,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", { "mesecons_piston_top.png^[transformR180", "mesecons_piston_tb.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_sticky_off", @@ -399,6 +409,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -473,6 +485,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_normal_off", @@ -493,6 +507,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -545,6 +561,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_sticky_off", @@ -565,6 +583,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", -- cgit v1.2.3 From 536c77330b7628cfdf17223cffa8d78b516f239d Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 8 Feb 2013 19:50:20 -0500 Subject: Fix sticky piston crafting recipe. --- mesecons_pistons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesecons_pistons/init.lua') diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 07102b8..08e4e3f 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -690,7 +690,7 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_down_sticky_on", piston_u --craft recipes minetest.register_craft({ - output = '"mesecons_pistons:piston_normal_off" 2', + output = 'mesecons_pistons:piston_normal_off 2', recipe = { {"default:wood", "default:wood", "default:wood"}, {"default:cobble", "default:steel_ingot", "default:cobble"}, @@ -702,6 +702,6 @@ minetest.register_craft({ output = "mesecons_pistons:piston_sticky_off", recipe = { {"mesecons_materials:glue"}, - {"mesecons_pistons:piston_normal"}, + {"mesecons_pistons:piston_normal_off"}, } }) -- cgit v1.2.3