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:
Joachim Stolberg 2021-01-18 12:31:33 +01:00 committed by GitHub
commit 0e01299f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 38 additions and 2 deletions

@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
allow_metadata_inventory_take = wh.allow_metadata_inventory_take, allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
allow_metadata_inventory_move = wh.allow_metadata_inventory_move, allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
allow_metadata_inventory_take = wh.allow_metadata_inventory_take, allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
allow_metadata_inventory_move = wh.allow_metadata_inventory_move, allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

@ -88,6 +88,9 @@ minetest.register_node(NODE_NAME.."_active", {
allow_metadata_inventory_take = wh.allow_metadata_inventory_take, allow_metadata_inventory_take = wh.allow_metadata_inventory_take,
allow_metadata_inventory_move = wh.allow_metadata_inventory_move, allow_metadata_inventory_move = wh.allow_metadata_inventory_move,
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,

@ -444,6 +444,9 @@ minetest.register_node("tubelib:distributor_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",

@ -175,6 +175,9 @@ minetest.register_node("tubelib:pusher_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",

@ -354,6 +354,9 @@ minetest.register_node("tubelib_addons1:autocrafter_active", {
}, },
}, },
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = keep_running, on_timer = keep_running,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

@ -193,6 +193,9 @@ minetest.register_node("tubelib_addons1:grinder_active", {
"tubelib_front.png", "tubelib_front.png",
}, },
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = keep_running, on_timer = keep_running,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

@ -202,6 +202,9 @@ minetest.register_node("tubelib_addons1:liquidsampler_active", {
'tubelib_addons1_liquidsampler.png', 'tubelib_addons1_liquidsampler.png',
}, },
diggable = false,
can_dig = function() return false end,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
on_timer = keep_running, on_timer = keep_running,
on_receive_fields = on_receive_fields, on_receive_fields = on_receive_fields,

@ -175,6 +175,9 @@ minetest.register_node("tubelib_addons1:pusher_fast_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",

@ -372,6 +372,9 @@ minetest.register_node("tubelib_addons1:quarry_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
allow_metadata_inventory_put = allow_metadata_inventory_put, allow_metadata_inventory_put = allow_metadata_inventory_put,
allow_metadata_inventory_take = allow_metadata_inventory_take, allow_metadata_inventory_take = allow_metadata_inventory_take,

@ -413,6 +413,9 @@ minetest.register_node("tubelib_addons3:distributor_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",

@ -160,6 +160,9 @@ minetest.register_node("tubelib_addons3:pusher_active", {
on_timer = keep_running, on_timer = keep_running,
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
diggable = false,
can_dig = function() return false end,
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
paramtype2 = "facedir", paramtype2 = "facedir",