mirror of
				https://github.com/minetest-mods/mesecons.git
				synced 2025-11-04 04:55:26 +01:00 
			
		
		
		
	Mesecons only connect to blocks with group mesecon > 1
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_normal", {
 | 
			
		||||
	description = "Piston",
 | 
			
		||||
	tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = mesecon:piston_get_direction(oldnode)
 | 
			
		||||
@@ -23,7 +23,7 @@ minetest.register_node("mesecons_pistons:piston_normal", {
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_sticky", {
 | 
			
		||||
	description = "Sticky Piston",
 | 
			
		||||
	tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = mesecon:piston_get_direction(oldnode)
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_down_normal", {
 | 
			
		||||
	description = "Piston DOWN",
 | 
			
		||||
	tiles = {"jeija_piston_tb.png", "jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = {x=0, y=-1, z=0}
 | 
			
		||||
		pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
 | 
			
		||||
@@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal", {
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_down_sticky", {
 | 
			
		||||
	description = "Sticky Piston DOWN",
 | 
			
		||||
	tiles = {"jeija_piston_tb.png", "jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = {x=0, y=-1, z=0}
 | 
			
		||||
		pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_up_normal", {
 | 
			
		||||
	description = "Piston UP",
 | 
			
		||||
	tiles = {"jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = {x=0, y=1, z=0}
 | 
			
		||||
		pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
 | 
			
		||||
@@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", {
 | 
			
		||||
minetest.register_node("mesecons_pistons:piston_up_sticky", {
 | 
			
		||||
	description = "Sticky Piston UP",
 | 
			
		||||
	tiles = {"jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"},
 | 
			
		||||
	groups = {cracky=3, mesecon = 1},
 | 
			
		||||
	groups = {cracky=3, mesecon = 2},
 | 
			
		||||
	after_dig_node = function(pos, oldnode)
 | 
			
		||||
		local dir = {x=0, y=1, z=0}
 | 
			
		||||
		pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user