1 minetest
.register_node("pseudonodes:pseudo_block", {
2 description
= "pseudo-block",
3 drawtype
= "glasslike",
5 tiles
= { "pseudonodes_pseudo_block.png" },
6 inventory_image
= minetest
.inventorycube("pseudonodes_pseudo_block.png"),
7 groups
= { pseudo
= 1 },
8 sunlight_propagates
= true,
10 sounds
= { dig
= { name
="", gain
= 0 } },
13 minetest
.register_node("pseudonodes:replacable_pseudo_block", {
14 description
= "replacable fixed pseudo-block",
15 drawtype
= "glasslike",
17 tiles
= { "pseudonodes_replacable_pseudo_block.png" },
18 inventory_image
= minetest
.inventorycube("pseudonodes_replacable_pseudo_block.png"),
19 groups
= { pseudo
= 1 },
20 sunlight_propagates
= true,
22 sounds
= { dig
= { name
="", gain
= 0 } },
27 minetest
.register_node("pseudonodes:pseudo_block_timer", {
28 description
= "timed pseudo-block",
29 drawtype
= "glasslike",
33 image
="pseudonodes_pseudo_block_timer_animated.png",
34 animation
={type="vertical_frames", aspect_w
=16, aspect_h
=16, length
=2}
37 inventory_image
= minetest
.inventorycube("pseudonodes_pseudo_block_timer.png"),
38 groups
= { pseudo
= 1 },
39 sunlight_propagates
= true,
41 sounds
= { dig
= { name
="", gain
= 0 } },
43 on_construct
= function(pos
)
44 local timer
= minetest
.get_node_timer(pos
)
47 on_timer
= function(pos
,elapsed
)
48 minetest
.remove_node(pos
)
52 minetest
.register_node("pseudonodes:replacable_pseudo_block_timer", {
53 description
= "replacable timed pseudo-block",
54 drawtype
= "glasslike",
58 image
="pseudonodes_replacable_pseudo_block_timer_animated.png",
59 animation
={type="vertical_frames", aspect_w
=16, aspect_h
=16, length
=2}
62 inventory_image
= minetest
.inventorycube("pseudonodes_replacable_pseudo_block_timer.png"),
63 groups
= { pseudo
= 1 },
64 sunlight_propagates
= true,
66 sounds
= { dig
= { name
="", gain
= 0 } },
69 on_construct
= function(pos
)
70 local timer
= minetest
.get_node_timer(pos
)
73 on_timer
= function(pos
,elapsed
)
74 minetest
.remove_node(pos
)
78 minetest
.register_node("pseudonodes:switch_block_off", {
79 description
= "switch block (off)",
80 drawtype
= "glasslike",
82 tiles
= { "pseudonodes_switch_block_off.png" },
83 inventory_image
= minetest
.inventorycube("pseudonodes_switch_block_off.png"),
84 sunlight_propagates
= true,
86 sounds
= { dig
= { name
="", gain
= 0 } },
87 groups
= { pseudo
= 1 },
89 on_rightclick
= function(pos
, node
, clicker
, itemstack
, pointed_thing
)
91 newnode
.name
= "pseudonodes:switch_block_on"
92 minetest
.swap_node(pos
, newnode
)
97 minetest
.register_node("pseudonodes:switch_block_on", {
98 description
= "switch block (on)",
99 tiles
= { "pseudonodes_switch_block_on.png" },
100 inventory_image
= minetest
.inventorycube("pseudonodes_switch_block_on.png"),
101 groups
= { pseudo
= 1 },
104 on_rightclick
= function(pos
, node
, clicker
, itemstack
, pointed_thing
)
106 newnode
.name
= "pseudonodes:switch_block_off"
107 minetest
.swap_node(pos
, newnode
)
112 minetest
.register_node("pseudonodes:ladder", {
113 description
= "pseudo-ladder",
114 drawtype
= "glasslike",
116 tiles
= { "pseudonodes_ladder.png" },
117 inventory_image
= minetest
.inventorycube("pseudonodes_ladder.png"),
118 groups
= { pseudo
= 1 },
119 sunlight_propagates
= true,
122 sounds
= { dig
= { name
="", gain
= 0 } },
127 minetest
.register_tool("pseudonodes:pick", {
128 description
= "pseudo-pick",
129 inventory_image
= "pseudonodes_pick.png",
130 tool_capabilities
= {
131 groupcaps
= { pseudo
= { times
= {[1]=0}, maxlevel
=1, maxwear
=0 }},