mirror of
https://github.com/joe7575/techpack.git
synced 2024-12-26 15:37:30 +01:00
Merge pull request #70 from afkplayer5000/afkplayer5000-patch-no-dig
Prevent digging of active tubelib nodes with node replacer etc.
This commit is contained in:
commit
0e01299f30
@ -87,6 +87,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
on_metadata_inventory_put = wh.on_metadata_inventory_put,
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
|
@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -87,6 +87,9 @@ minetest.register_node(NODE_NAME.."_active", {
|
||||
on_metadata_inventory_put = wh.on_metadata_inventory_put,
|
||||
allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
|
||||
allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
paramtype = "light",
|
||||
|
@ -444,6 +444,9 @@ minetest.register_node("tubelib:distributor_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -174,7 +174,10 @@ minetest.register_node("tubelib:pusher_active", {
|
||||
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -353,6 +353,9 @@ minetest.register_node("tubelib_addons1:autocrafter_active", {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
|
@ -193,6 +193,9 @@ minetest.register_node("tubelib_addons1:grinder_active", {
|
||||
"tubelib_front.png",
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
on_receive_fields = on_receive_fields,
|
||||
|
@ -202,6 +202,9 @@ minetest.register_node("tubelib_addons1:liquidsampler_active", {
|
||||
'tubelib_addons1_liquidsampler.png',
|
||||
},
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
on_rotate = screwdriver.disallow,
|
||||
on_timer = keep_running,
|
||||
on_receive_fields = on_receive_fields,
|
||||
|
@ -174,6 +174,9 @@ minetest.register_node("tubelib_addons1:pusher_fast_active", {
|
||||
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -372,6 +372,9 @@ minetest.register_node("tubelib_addons1:quarry_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
allow_metadata_inventory_put = allow_metadata_inventory_put,
|
||||
allow_metadata_inventory_take = allow_metadata_inventory_take,
|
||||
|
||||
|
@ -413,6 +413,9 @@ minetest.register_node("tubelib_addons3:distributor_active", {
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
@ -159,7 +159,10 @@ minetest.register_node("tubelib_addons3:pusher_active", {
|
||||
|
||||
on_timer = keep_running,
|
||||
on_rotate = screwdriver.disallow,
|
||||
|
||||
|
||||
diggable = false,
|
||||
can_dig = function() return false end,
|
||||
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
paramtype2 = "facedir",
|
||||
|
Loading…
Reference in New Issue
Block a user