Pseudo-nodes don’t drop anything
This commit is contained in:
parent
8243d1db1e
commit
57c62b26d8
5
init.lua
5
init.lua
@ -10,6 +10,7 @@ minetest.register_node("pseudonodes:pseudo_block", {
|
|||||||
sounds = { dig = { name="", gain = 0 } },
|
sounds = { dig = { name="", gain = 0 } },
|
||||||
alpha = 0,
|
alpha = 0,
|
||||||
stack_max = 9999,
|
stack_max = 9999,
|
||||||
|
drop = "",
|
||||||
})
|
})
|
||||||
minetest.register_node("pseudonodes:replacable_pseudo_block", {
|
minetest.register_node("pseudonodes:replacable_pseudo_block", {
|
||||||
description = "replacable fixed pseudo-block",
|
description = "replacable fixed pseudo-block",
|
||||||
@ -24,6 +25,7 @@ minetest.register_node("pseudonodes:replacable_pseudo_block", {
|
|||||||
alpha = 0,
|
alpha = 0,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
stack_max = 9999,
|
stack_max = 9999,
|
||||||
|
drop = "",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("pseudonodes:pseudo_block_timer", {
|
minetest.register_node("pseudonodes:pseudo_block_timer", {
|
||||||
@ -43,6 +45,7 @@ minetest.register_node("pseudonodes:pseudo_block_timer", {
|
|||||||
sounds = { dig = { name="", gain = 0 } },
|
sounds = { dig = { name="", gain = 0 } },
|
||||||
alpha = 0,
|
alpha = 0,
|
||||||
stack_max = 9999,
|
stack_max = 9999,
|
||||||
|
drop = "",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local timer = minetest.get_node_timer(pos)
|
local timer = minetest.get_node_timer(pos)
|
||||||
timer:start(5)
|
timer:start(5)
|
||||||
@ -70,6 +73,7 @@ minetest.register_node("pseudonodes:replacable_pseudo_block_timer", {
|
|||||||
alpha = 0,
|
alpha = 0,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
stack_max = 9999,
|
stack_max = 9999,
|
||||||
|
drop = "",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local timer = minetest.get_node_timer(pos)
|
local timer = minetest.get_node_timer(pos)
|
||||||
timer:start(5)
|
timer:start(5)
|
||||||
@ -107,6 +111,7 @@ minetest.register_node("pseudonodes:switch_block_on", {
|
|||||||
diggable = true,
|
diggable = true,
|
||||||
walkable = true,
|
walkable = true,
|
||||||
stack_max = 9999,
|
stack_max = 9999,
|
||||||
|
drop = "",
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
local newnode = node
|
local newnode = node
|
||||||
newnode.name = "pseudonodes:switch_block_off"
|
newnode.name = "pseudonodes:switch_block_off"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user