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 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:switch_block_off", {
28 description
= "switch block (off)",
29 drawtype
= "glasslike",
31 tiles
= { "pseudonodes_switch_block_off.png" },
32 inventory_image
= minetest
.inventorycube("pseudonodes_switch_block_off.png"),
33 sunlight_propagates
= true,
35 sounds
= { dig
= { name
="", gain
= 0 } },
36 groups
= { pseudo
= 1 },
38 on_rightclick
= function(pos
, node
, clicker
, itemstack
, pointed_thing
)
40 newnode
.name
= "pseudonodes:switch_block_on"
41 minetest
.swap_node(pos
, newnode
)
46 minetest
.register_node("pseudonodes:switch_block_on", {
47 description
= "switch block (on)",
48 tiles
= { "pseudonodes_switch_block_on.png" },
49 inventory_image
= minetest
.inventorycube("pseudonodes_switch_block_on.png"),
50 groups
= { pseudo
= 1 },
53 on_rightclick
= function(pos
, node
, clicker
, itemstack
, pointed_thing
)
55 newnode
.name
= "pseudonodes:switch_block_off"
56 minetest
.swap_node(pos
, newnode
)
61 minetest
.register_node("pseudonodes:ladder", {
62 description
= "pseudo-ladder",
63 drawtype
= "glasslike",
65 tiles
= { "pseudonodes_ladder.png" },
66 inventory_image
= minetest
.inventorycube("pseudonodes_ladder.png"),
67 groups
= { pseudo
= 1 },
68 sunlight_propagates
= true,
71 sounds
= { dig
= { name
="", gain
= 0 } },
76 minetest
.register_tool("pseudonodes:pick", {
77 description
= "pseudo-pick",
78 inventory_image
= "pseudonodes_pick.png",
80 groupcaps
= { pseudo
= { times
= {[1]=0}, maxlevel
=1, maxwear
=0 }},