1 -- mods/default/nodes.lua
4 --[[ Node name convention:
6 Although many node names are in combined-word form, the required form for new
7 node names is words separated by underscores. If both forms are used in written
8 language (for example pinewood and pine wood) the underscore form should be used.
17 (1. Material 2. Cobble variant 3. Brick variant 4. Modified forms)
26 default:desert_stonebrick
29 default:sandstonebrick
36 (1. Material 2. Modified forms)
39 default:dirt_with_grass
40 default:dirt_with_grass_footsteps
41 default:dirt_with_dry_grass
42 default:dirt_with_snow
58 (1. Trunk 2. Fabricated trunk 3. Leaves 4. Sapling 5. Fruits)
79 default:acacia_sapling
88 (1. In stone 2. Blocks)
90 default:stone_with_coal
93 default:stone_with_iron
96 default:stone_with_copper
100 default:stone_with_gold
103 default:stone_with_mese
106 default:stone_with_diamond
109 Plantlife (non-cubic)
110 ---------------------
131 (1. Source 2. Flowing)
134 default:water_flowing
136 default:river_water_source
137 default:river_water_flowing
142 Tools / "Advanced" crafting / Non-"natural"
143 -------------------------------------------
152 default:sign_wall_wood
153 default:sign_wall_steel
159 default:fence_acacia_wood
160 default:fence_junglewood
161 default:fence_pine_wood
162 default:fence_aspen_wood
165 default:obsidian_glass
178 default:nyancat_rainbow
186 minetest.register_node("default:stone", {
187 description = "Stone",
188 tiles = {"default_stone.png"},
189 groups = {cracky = 3, stone = 1},
190 drop = 'default:cobble',
191 legacy_mineral = true,
192 sounds = default.node_sound_stone_defaults(),
195 minetest.register_node("default:cobble", {
196 description = "Cobblestone",
197 tiles = {"default_cobble.png"},
198 is_ground_content = false,
199 groups = {cracky = 3, stone = 2},
200 sounds = default.node_sound_stone_defaults(),
203 minetest.register_node("default:stonebrick", {
204 description = "Stone Brick",
205 tiles = {"default_stone_brick.png"},
206 is_ground_content = false,
207 groups = {cracky = 2, stone = 1},
208 sounds = default.node_sound_stone_defaults(),
211 minetest.register_node("default:mossycobble", {
212 description = "Mossy Cobblestone",
213 tiles = {"default_mossycobble.png"},
214 is_ground_content = false,
215 groups = {cracky = 3, stone = 1},
216 sounds = default.node_sound_stone_defaults(),
220 minetest.register_node("default:desert_stone", {
221 description = "Desert Stone",
222 tiles = {"default_desert_stone.png"},
223 groups = {cracky = 3, stone = 1},
224 drop = 'default:desert_cobble',
225 legacy_mineral = true,
226 sounds = default.node_sound_stone_defaults(),
229 minetest.register_node("default:desert_cobble", {
230 description = "Desert Cobblestone",
231 tiles = {"default_desert_cobble.png"},
232 is_ground_content = false,
233 groups = {cracky = 3, stone = 2},
234 sounds = default.node_sound_stone_defaults(),
237 minetest.register_node("default:desert_stonebrick", {
238 description = "Desert Stone Brick",
239 tiles = {"default_desert_stone_brick.png"},
240 is_ground_content = false,
241 groups = {cracky = 2, stone = 1},
242 sounds = default.node_sound_stone_defaults(),
246 minetest.register_node("default:sandstone", {
247 description = "Sandstone",
248 tiles = {"default_sandstone.png"},
249 groups = {crumbly = 2, cracky = 3},
250 sounds = default.node_sound_stone_defaults(),
253 minetest.register_node("default:sandstonebrick", {
254 description = "Sandstone Brick",
255 tiles = {"default_sandstone_brick.png"},
256 is_ground_content = false,
257 groups = {cracky = 2},
258 sounds = default.node_sound_stone_defaults(),
262 minetest.register_node("default:obsidian", {
263 description = "Obsidian",
264 tiles = {"default_obsidian.png"},
265 sounds = default.node_sound_stone_defaults(),
266 groups = {cracky = 1, level = 2},
269 minetest.register_node("default:obsidianbrick", {
270 description = "Obsidian Brick",
271 tiles = {"default_obsidian_brick.png"},
272 is_ground_content = false,
273 sounds = default.node_sound_stone_defaults(),
274 groups = {cracky = 1, level = 2},
281 minetest.register_node("default:dirt", {
282 description = "Dirt",
283 tiles = {"default_dirt.png"},
284 groups = {crumbly = 3, soil = 1},
285 sounds = default.node_sound_dirt_defaults(),
288 minetest.register_node("default:dirt_with_grass", {
289 description = "Dirt with Grass",
290 tiles = {"default_grass.png", "default_dirt.png",
291 {name = "default_dirt.png^default_grass_side.png",
292 tileable_vertical = false}},
293 groups = {crumbly = 3, soil = 1},
294 drop = 'default:dirt',
295 sounds = default.node_sound_dirt_defaults({
296 footstep = {name = "default_grass_footstep", gain = 0.25},
300 minetest.register_node("default:dirt_with_grass_footsteps", {
301 description = "Dirt with Grass and Footsteps",
302 tiles = {"default_grass.png^default_footprint.png", "default_dirt.png",
303 {name = "default_dirt.png^default_grass_side.png",
304 tileable_vertical = false}},
305 groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1},
306 drop = 'default:dirt',
307 sounds = default.node_sound_dirt_defaults({
308 footstep = {name = "default_grass_footstep", gain = 0.25},
312 minetest.register_node("default:dirt_with_dry_grass", {
313 description = "Dirt with Dry Grass",
314 tiles = {"default_dry_grass.png",
316 {name = "default_dirt.png^default_dry_grass_side.png",
317 tileable_vertical = false}},
318 groups = {crumbly = 3, soil = 1},
319 drop = 'default:dirt',
320 sounds = default.node_sound_dirt_defaults({
321 footstep = {name = "default_grass_footstep", gain = 0.4},
325 minetest.register_node("default:dirt_with_snow", {
326 description = "Dirt with Snow",
327 tiles = {"default_snow.png", "default_dirt.png",
328 {name = "default_dirt.png^default_snow_side.png",
329 tileable_vertical = false}},
330 groups = {crumbly = 3, soil = 1},
331 drop = 'default:dirt',
332 sounds = default.node_sound_dirt_defaults({
333 footstep = {name = "default_snow_footstep", gain = 0.15},
337 minetest.register_node("default:sand", {
338 description = "Sand",
339 tiles = {"default_sand.png"},
340 groups = {crumbly = 3, falling_node = 1, sand = 1},
341 sounds = default.node_sound_sand_defaults(),
344 minetest.register_node("default:desert_sand", {
345 description = "Desert Sand",
346 tiles = {"default_desert_sand.png"},
347 groups = {crumbly = 3, falling_node = 1, sand = 1},
348 sounds = default.node_sound_sand_defaults(),
352 minetest.register_node("default:gravel", {
353 description = "Gravel",
354 tiles = {"default_gravel.png"},
355 groups = {crumbly = 2, falling_node = 1},
356 sounds = default.node_sound_dirt_defaults({
357 footstep = {name = "default_gravel_footstep", gain = 0.5},
358 dug = {name = "default_gravel_footstep", gain = 1.0},
363 {items = {'default:flint'}, rarity = 16},
364 {items = {'default:gravel'}}
369 minetest.register_node("default:clay", {
370 description = "Clay",
371 tiles = {"default_clay.png"},
372 groups = {crumbly = 3},
373 drop = 'default:clay_lump 4',
374 sounds = default.node_sound_dirt_defaults(),
378 minetest.register_node("default:snow", {
379 description = "Snow",
380 tiles = {"default_snow.png"},
381 inventory_image = "default_snowball.png",
382 wield_image = "default_snowball.png",
386 drawtype = "nodebox",
390 {-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
393 groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1},
394 sounds = default.node_sound_dirt_defaults({
395 footstep = {name = "default_snow_footstep", gain = 0.15},
396 dug = {name = "default_snow_footstep", gain = 0.2},
397 dig = {name = "default_snow_footstep", gain = 0.2}
400 on_construct = function(pos)
402 if minetest.get_node(pos).name == "default:dirt_with_grass" then
403 minetest.set_node(pos, {name = "default:dirt_with_snow"})
408 minetest.register_node("default:snowblock", {
409 description = "Snow Block",
410 tiles = {"default_snow.png"},
411 groups = {crumbly = 3, puts_out_fire = 1},
412 sounds = default.node_sound_dirt_defaults({
413 footstep = {name = "default_snow_footstep", gain = 0.15},
414 dug = {name = "default_snow_footstep", gain = 0.2},
415 dig = {name = "default_snow_footstep", gain = 0.2}
419 minetest.register_node("default:ice", {
421 tiles = {"default_ice.png"},
422 is_ground_content = false,
424 groups = {cracky = 3, puts_out_fire = 1},
425 sounds = default.node_sound_glass_defaults(),
432 minetest.register_node("default:tree", {
433 description = "Tree",
434 tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
435 paramtype2 = "facedir",
436 is_ground_content = false,
437 groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
438 sounds = default.node_sound_wood_defaults(),
440 on_place = minetest.rotate_node
443 minetest.register_node("default:wood", {
444 description = "Wooden Planks",
445 tiles = {"default_wood.png"},
446 is_ground_content = false,
447 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
448 sounds = default.node_sound_wood_defaults(),
451 minetest.register_node("default:sapling", {
452 description = "Sapling",
453 drawtype = "plantlike",
455 tiles = {"default_sapling.png"},
456 inventory_image = "default_sapling.png",
457 wield_image = "default_sapling.png",
459 sunlight_propagates = true,
463 fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
465 groups = {snappy = 2, dig_immediate = 3, flammable = 2,
466 attached_node = 1, sapling = 1},
467 sounds = default.node_sound_leaves_defaults(),
470 minetest.register_node("default:leaves", {
471 description = "Leaves",
472 drawtype = "allfaces_optional",
475 tiles = {"default_leaves.png"},
476 special_tiles = {"default_leaves_simple.png"},
478 is_ground_content = false,
479 groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
484 -- player will get sapling with 1/20 chance
485 items = {'default:sapling'},
489 -- player will get leaves only if he get no saplings,
490 -- this is because max_items is 1
491 items = {'default:leaves'},
495 sounds = default.node_sound_leaves_defaults(),
497 after_place_node = default.after_place_leaves,
500 minetest.register_node("default:apple", {
501 description = "Apple",
502 drawtype = "plantlike",
504 tiles = {"default_apple.png"},
505 inventory_image = "default_apple.png",
507 sunlight_propagates = true,
509 is_ground_content = false,
512 fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
514 groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
515 leafdecay = 3, leafdecay_drop = 1},
516 on_use = minetest.item_eat(2),
517 sounds = default.node_sound_leaves_defaults(),
519 after_place_node = function(pos, placer, itemstack)
520 if placer:is_player() then
521 minetest.set_node(pos, {name = "default:apple", param2 = 1})
527 minetest.register_node("default:jungletree", {
528 description = "Jungle Tree",
529 tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
530 "default_jungletree.png"},
531 paramtype2 = "facedir",
532 is_ground_content = false,
533 groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
534 sounds = default.node_sound_wood_defaults(),
536 on_place = minetest.rotate_node
539 minetest.register_node("default:junglewood", {
540 description = "Junglewood Planks",
541 tiles = {"default_junglewood.png"},
542 is_ground_content = false,
543 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
544 sounds = default.node_sound_wood_defaults(),
547 minetest.register_node("default:jungleleaves", {
548 description = "Jungle Leaves",
549 drawtype = "allfaces_optional",
552 tiles = {"default_jungleleaves.png"},
553 special_tiles = {"default_jungleleaves_simple.png"},
555 is_ground_content = false,
556 groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
560 {items = {'default:junglesapling'}, rarity = 20},
561 {items = {'default:jungleleaves'}}
564 sounds = default.node_sound_leaves_defaults(),
566 after_place_node = default.after_place_leaves,
569 minetest.register_node("default:junglesapling", {
570 description = "Jungle Sapling",
571 drawtype = "plantlike",
573 tiles = {"default_junglesapling.png"},
574 inventory_image = "default_junglesapling.png",
575 wield_image = "default_junglesapling.png",
577 sunlight_propagates = true,
581 fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
583 groups = {snappy = 2, dig_immediate = 3, flammable = 2,
584 attached_node = 1, sapling = 1},
585 sounds = default.node_sound_leaves_defaults(),
589 minetest.register_node("default:pine_tree", {
590 description = "Pine Tree",
591 tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
592 "default_pine_tree.png"},
593 paramtype2 = "facedir",
594 is_ground_content = false,
595 groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
596 sounds = default.node_sound_wood_defaults(),
598 on_place = minetest.rotate_node
601 minetest.register_node("default:pine_wood", {
602 description = "Pine Wood Planks",
603 tiles = {"default_pine_wood.png"},
604 is_ground_content = false,
605 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
606 sounds = default.node_sound_wood_defaults(),
609 minetest.register_node("default:pine_needles",{
610 description = "Pine Needles",
611 drawtype = "allfaces_optional",
613 tiles = {"default_pine_needles.png"},
616 is_ground_content = false,
617 groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
621 {items = {"default:pine_sapling"}, rarity = 20},
622 {items = {"default:pine_needles"}}
625 sounds = default.node_sound_leaves_defaults(),
627 after_place_node = default.after_place_leaves,
630 minetest.register_node("default:pine_sapling", {
631 description = "Pine Sapling",
632 drawtype = "plantlike",
634 tiles = {"default_pine_sapling.png"},
635 inventory_image = "default_pine_sapling.png",
636 wield_image = "default_pine_sapling.png",
638 sunlight_propagates = true,
642 fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
644 groups = {snappy = 2, dig_immediate = 3, flammable = 2,
645 attached_node = 1, sapling = 1},
646 sounds = default.node_sound_leaves_defaults(),
650 minetest.register_node("default:acacia_tree", {
651 description = "Acacia Tree",
652 tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
653 "default_acacia_tree.png"},
654 paramtype2 = "facedir",
655 is_ground_content = false,
656 groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
657 sounds = default.node_sound_wood_defaults(),
659 on_place = minetest.rotate_node
662 minetest.register_node("default:acacia_wood", {
663 description = "Acacia Wood Planks",
664 tiles = {"default_acacia_wood.png"},
665 is_ground_content = false,
666 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
667 sounds = default.node_sound_wood_defaults(),
670 minetest.register_node("default:acacia_leaves", {
671 description = "Acacia Leaves",
672 drawtype = "allfaces_optional",
674 tiles = {"default_acacia_leaves.png"},
677 is_ground_content = false,
678 groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
682 {items = {"default:acacia_sapling"}, rarity = 20},
683 {items = {"default:acacia_leaves"}}
686 sounds = default.node_sound_leaves_defaults(),
688 after_place_node = default.after_place_leaves,
691 minetest.register_node("default:acacia_sapling", {
692 description = "Acacia Tree Sapling",
693 drawtype = "plantlike",
695 tiles = {"default_acacia_sapling.png"},
696 inventory_image = "default_acacia_sapling.png",
697 wield_image = "default_acacia_sapling.png",
699 sunlight_propagates = true,
703 fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
705 groups = {snappy = 2, dig_immediate = 3, flammable = 2,
706 attached_node = 1, sapling = 1},
707 sounds = default.node_sound_leaves_defaults(),
710 minetest.register_node("default:aspen_tree", {
711 description = "Aspen Tree",
712 tiles = {"default_aspen_tree_top.png", "default_aspen_tree_top.png",
713 "default_aspen_tree.png"},
714 paramtype2 = "facedir",
715 is_ground_content = false,
716 groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
717 sounds = default.node_sound_wood_defaults(),
719 on_place = minetest.rotate_node
722 minetest.register_node("default:aspen_wood", {
723 description = "Aspen Wood Planks",
724 tiles = {"default_aspen_wood.png"},
725 is_ground_content = false,
726 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
727 sounds = default.node_sound_wood_defaults(),
730 minetest.register_node("default:aspen_leaves", {
731 description = "Aspen Leaves",
732 drawtype = "allfaces_optional",
734 tiles = {"default_aspen_leaves.png"},
737 is_ground_content = false,
738 groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
742 {items = {"default:aspen_sapling"}, rarity = 20},
743 {items = {"default:aspen_leaves"}}
746 sounds = default.node_sound_leaves_defaults(),
748 after_place_node = default.after_place_leaves,
751 minetest.register_node("default:aspen_sapling", {
752 description = "Aspen Tree Sapling",
753 drawtype = "plantlike",
755 tiles = {"default_aspen_sapling.png"},
756 inventory_image = "default_aspen_sapling.png",
757 wield_image = "default_aspen_sapling.png",
759 sunlight_propagates = true,
763 fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
765 groups = {snappy = 2, dig_immediate = 3, flammable = 2,
766 attached_node = 1, sapling = 1},
767 sounds = default.node_sound_leaves_defaults(),
773 minetest.register_node("default:stone_with_coal", {
774 description = "Coal Ore",
775 tiles = {"default_stone.png^default_mineral_coal.png"},
776 groups = {cracky = 3},
777 drop = 'default:coal_lump',
778 sounds = default.node_sound_stone_defaults(),
781 minetest.register_node("default:coalblock", {
782 description = "Coal Block",
783 tiles = {"default_coal_block.png"},
784 is_ground_content = false,
785 groups = {cracky = 3},
786 sounds = default.node_sound_stone_defaults(),
790 minetest.register_node("default:stone_with_iron", {
791 description = "Iron Ore",
792 tiles = {"default_stone.png^default_mineral_iron.png"},
793 groups = {cracky = 2},
794 drop = 'default:iron_lump',
795 sounds = default.node_sound_stone_defaults(),
798 minetest.register_node("default:steelblock", {
799 description = "Steel Block",
800 tiles = {"default_steel_block.png"},
801 is_ground_content = false,
802 groups = {cracky = 1, level = 2},
803 sounds = default.node_sound_stone_defaults(),
807 minetest.register_node("default:stone_with_copper", {
808 description = "Copper Ore",
809 tiles = {"default_stone.png^default_mineral_copper.png"},
810 groups = {cracky = 2},
811 drop = 'default:copper_lump',
812 sounds = default.node_sound_stone_defaults(),
815 minetest.register_node("default:copperblock", {
816 description = "Copper Block",
817 tiles = {"default_copper_block.png"},
818 is_ground_content = false,
819 groups = {cracky = 1, level = 2},
820 sounds = default.node_sound_stone_defaults(),
823 minetest.register_node("default:bronzeblock", {
824 description = "Bronze Block",
825 tiles = {"default_bronze_block.png"},
826 is_ground_content = false,
827 groups = {cracky = 1, level = 2},
828 sounds = default.node_sound_stone_defaults(),
832 minetest.register_node("default:stone_with_mese", {
833 description = "Mese Ore",
834 tiles = {"default_stone.png^default_mineral_mese.png"},
835 groups = {cracky = 1},
836 drop = "default:mese_crystal",
837 sounds = default.node_sound_stone_defaults(),
840 minetest.register_node("default:mese", {
841 description = "Mese Block",
842 tiles = {"default_mese_block.png"},
844 groups = {cracky = 1, level = 2},
845 sounds = default.node_sound_stone_defaults(),
850 minetest.register_node("default:stone_with_gold", {
851 description = "Gold Ore",
852 tiles = {"default_stone.png^default_mineral_gold.png"},
853 groups = {cracky = 2},
854 drop = "default:gold_lump",
855 sounds = default.node_sound_stone_defaults(),
858 minetest.register_node("default:goldblock", {
859 description = "Gold Block",
860 tiles = {"default_gold_block.png"},
861 is_ground_content = false,
862 groups = {cracky = 1},
863 sounds = default.node_sound_stone_defaults(),
867 minetest.register_node("default:stone_with_diamond", {
868 description = "Diamond Ore",
869 tiles = {"default_stone.png^default_mineral_diamond.png"},
870 groups = {cracky = 1},
871 drop = "default:diamond",
872 sounds = default.node_sound_stone_defaults(),
875 minetest.register_node("default:diamondblock", {
876 description = "Diamond Block",
877 tiles = {"default_diamond_block.png"},
878 is_ground_content = false,
879 groups = {cracky = 1, level = 3},
880 sounds = default.node_sound_stone_defaults(),
884 -- Plantlife (non-cubic)
887 minetest.register_node("default:cactus", {
888 description = "Cactus",
889 tiles = {"default_cactus_top.png", "default_cactus_top.png",
890 "default_cactus_side.png"},
891 paramtype2 = "facedir",
892 groups = {snappy = 1, choppy = 3},
893 sounds = default.node_sound_wood_defaults(),
894 on_place = minetest.rotate_node,
897 minetest.register_node("default:papyrus", {
898 description = "Papyrus",
899 drawtype = "plantlike",
900 tiles = {"default_papyrus.png"},
901 inventory_image = "default_papyrus.png",
902 wield_image = "default_papyrus.png",
904 sunlight_propagates = true,
908 fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
910 groups = {snappy = 3, flammable = 2},
911 sounds = default.node_sound_leaves_defaults(),
913 after_dig_node = function(pos, node, metadata, digger)
914 default.dig_up(pos, node, digger)
918 minetest.register_node("default:dry_shrub", {
919 description = "Dry Shrub",
920 drawtype = "plantlike",
923 tiles = {"default_dry_shrub.png"},
924 inventory_image = "default_dry_shrub.png",
925 wield_image = "default_dry_shrub.png",
927 sunlight_propagates = true,
930 groups = {snappy = 3, flammable = 3, attached_node = 1},
931 sounds = default.node_sound_leaves_defaults(),
934 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
938 minetest.register_node("default:junglegrass", {
939 description = "Jungle Grass",
940 drawtype = "plantlike",
943 tiles = {"default_junglegrass.png"},
944 inventory_image = "default_junglegrass.png",
945 wield_image = "default_junglegrass.png",
947 sunlight_propagates = true,
950 groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
951 sounds = default.node_sound_leaves_defaults(),
954 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
959 minetest.register_node("default:grass_1", {
960 description = "Grass",
961 drawtype = "plantlike",
963 tiles = {"default_grass_1.png"},
964 -- Use texture of a taller grass stage in inventory
965 inventory_image = "default_grass_3.png",
966 wield_image = "default_grass_3.png",
968 sunlight_propagates = true,
971 groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1},
972 sounds = default.node_sound_leaves_defaults(),
975 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
978 on_place = function(itemstack, placer, pointed_thing)
979 -- place a random grass node
980 local stack = ItemStack("default:grass_" .. math.random(1,5))
981 local ret = minetest.item_place(stack, placer, pointed_thing)
982 return ItemStack("default:grass_1 " ..
983 itemstack:get_count() - (1 - ret:get_count()))
988 minetest.register_node("default:grass_" .. i, {
989 description = "Grass",
990 drawtype = "plantlike",
992 tiles = {"default_grass_" .. i .. ".png"},
993 inventory_image = "default_grass_" .. i .. ".png",
994 wield_image = "default_grass_" .. i .. ".png",
996 sunlight_propagates = true,
999 drop = "default:grass_1",
1000 groups = {snappy = 3, flora = 1, attached_node = 1,
1001 not_in_creative_inventory = 1, grass = 1},
1002 sounds = default.node_sound_leaves_defaults(),
1005 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
1011 minetest.register_node("default:dry_grass_1", {
1012 description = "Dry Grass",
1013 drawtype = "plantlike",
1015 tiles = {"default_dry_grass_1.png"},
1016 inventory_image = "default_dry_grass_3.png",
1017 wield_image = "default_dry_grass_3.png",
1018 paramtype = "light",
1019 sunlight_propagates = true,
1021 buildable_to = true,
1022 groups = {snappy = 3, flammable = 3, flora = 1,
1023 attached_node = 1, dry_grass = 1},
1024 sounds = default.node_sound_leaves_defaults(),
1027 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
1030 on_place = function(itemstack, placer, pointed_thing)
1031 -- place a random dry grass node
1032 local stack = ItemStack("default:dry_grass_" .. math.random(1, 5))
1033 local ret = minetest.item_place(stack, placer, pointed_thing)
1034 return ItemStack("default:dry_grass_1 " ..
1035 itemstack:get_count() - (1 - ret:get_count()))
1040 minetest.register_node("default:dry_grass_" .. i, {
1041 description = "Dry Grass",
1042 drawtype = "plantlike",
1044 tiles = {"default_dry_grass_" .. i .. ".png"},
1045 inventory_image = "default_dry_grass_" .. i .. ".png",
1046 wield_image = "default_dry_grass_" .. i .. ".png",
1047 paramtype = "light",
1048 sunlight_propagates = true,
1050 buildable_to = true,
1051 groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1,
1052 not_in_creative_inventory=1, dry_grass = 1},
1053 drop = "default:dry_grass_1",
1054 sounds = default.node_sound_leaves_defaults(),
1057 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
1066 minetest.register_node("default:water_source", {
1067 description = "Water Source",
1068 drawtype = "liquid",
1071 name = "default_water_source_animated.png",
1073 type = "vertical_frames",
1081 -- New-style water source material (mostly unused)
1083 name = "default_water_source_animated.png",
1085 type = "vertical_frames",
1090 backface_culling = false,
1094 paramtype = "light",
1098 buildable_to = true,
1099 is_ground_content = false,
1102 liquidtype = "source",
1103 liquid_alternative_flowing = "default:water_flowing",
1104 liquid_alternative_source = "default:water_source",
1105 liquid_viscosity = 1,
1106 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
1107 groups = {water = 3, liquid = 3, puts_out_fire = 1},
1110 minetest.register_node("default:water_flowing", {
1111 description = "Flowing Water",
1112 drawtype = "flowingliquid",
1113 tiles = {"default_water.png"},
1116 name = "default_water_flowing_animated.png",
1117 backface_culling = false,
1119 type = "vertical_frames",
1126 name = "default_water_flowing_animated.png",
1127 backface_culling = true,
1129 type = "vertical_frames",
1137 paramtype = "light",
1138 paramtype2 = "flowingliquid",
1142 buildable_to = true,
1143 is_ground_content = false,
1146 liquidtype = "flowing",
1147 liquid_alternative_flowing = "default:water_flowing",
1148 liquid_alternative_source = "default:water_source",
1149 liquid_viscosity = 1,
1150 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
1151 groups = {water = 3, liquid = 3, puts_out_fire = 1,
1152 not_in_creative_inventory = 1},
1156 minetest.register_node("default:river_water_source", {
1157 description = "River Water Source",
1158 drawtype = "liquid",
1161 name = "default_river_water_source_animated.png",
1163 type = "vertical_frames",
1172 name = "default_river_water_source_animated.png",
1174 type = "vertical_frames",
1179 backface_culling = false,
1183 paramtype = "light",
1187 buildable_to = true,
1188 is_ground_content = false,
1191 liquidtype = "source",
1192 liquid_alternative_flowing = "default:river_water_flowing",
1193 liquid_alternative_source = "default:river_water_source",
1194 liquid_viscosity = 1,
1195 liquid_renewable = false,
1197 post_effect_color = {a = 103, r = 30, g = 76, b = 90},
1198 groups = {water = 3, liquid = 3, puts_out_fire = 1},
1201 minetest.register_node("default:river_water_flowing", {
1202 description = "Flowing River Water",
1203 drawtype = "flowingliquid",
1204 tiles = {"default_river_water.png"},
1207 name = "default_river_water_flowing_animated.png",
1208 backface_culling = false,
1210 type = "vertical_frames",
1217 name = "default_river_water_flowing_animated.png",
1218 backface_culling = true,
1220 type = "vertical_frames",
1228 paramtype = "light",
1229 paramtype2 = "flowingliquid",
1233 buildable_to = true,
1234 is_ground_content = false,
1237 liquidtype = "flowing",
1238 liquid_alternative_flowing = "default:river_water_flowing",
1239 liquid_alternative_source = "default:river_water_source",
1240 liquid_viscosity = 1,
1241 liquid_renewable = false,
1243 post_effect_color = {a = 103, r = 30, g = 76, b = 90},
1244 groups = {water = 3, liquid = 3, puts_out_fire = 1,
1245 not_in_creative_inventory = 1},
1249 minetest.register_node("default:lava_source", {
1250 description = "Lava Source",
1251 drawtype = "liquid",
1254 name = "default_lava_source_animated.png",
1256 type = "vertical_frames",
1264 -- New-style lava source material (mostly unused)
1266 name = "default_lava_source_animated.png",
1268 type = "vertical_frames",
1273 backface_culling = false,
1276 paramtype = "light",
1277 light_source = default.LIGHT_MAX - 1,
1281 buildable_to = true,
1282 is_ground_content = false,
1285 liquidtype = "source",
1286 liquid_alternative_flowing = "default:lava_flowing",
1287 liquid_alternative_source = "default:lava_source",
1288 liquid_viscosity = 7,
1289 liquid_renewable = false,
1290 damage_per_second = 4 * 2,
1291 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
1292 groups = {lava = 3, liquid = 2, hot = 3, igniter = 1},
1295 minetest.register_node("default:lava_flowing", {
1296 description = "Flowing Lava",
1297 drawtype = "flowingliquid",
1298 tiles = {"default_lava.png"},
1301 name = "default_lava_flowing_animated.png",
1302 backface_culling = false,
1304 type = "vertical_frames",
1311 name = "default_lava_flowing_animated.png",
1312 backface_culling = true,
1314 type = "vertical_frames",
1321 paramtype = "light",
1322 paramtype2 = "flowingliquid",
1323 light_source = default.LIGHT_MAX - 1,
1327 buildable_to = true,
1328 is_ground_content = false,
1331 liquidtype = "flowing",
1332 liquid_alternative_flowing = "default:lava_flowing",
1333 liquid_alternative_source = "default:lava_source",
1334 liquid_viscosity = 7,
1335 liquid_renewable = false,
1336 damage_per_second = 4 * 2,
1337 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
1338 groups = {lava = 3, liquid = 2, hot = 3, igniter = 1,
1339 not_in_creative_inventory = 1},
1343 -- Tools / "Advanced" crafting / Non-"natural"
1346 minetest.register_node("default:torch", {
1347 description = "Torch",
1348 drawtype = "torchlike",
1351 name = "default_torch_on_floor_animated.png",
1353 type = "vertical_frames",
1360 name="default_torch_on_ceiling_animated.png",
1362 type = "vertical_frames",
1369 name="default_torch_animated.png",
1371 type = "vertical_frames",
1378 inventory_image = "default_torch_on_floor.png",
1379 wield_image = "default_torch_on_floor.png",
1380 paramtype = "light",
1381 paramtype2 = "wallmounted",
1382 sunlight_propagates = true,
1383 is_ground_content = false,
1385 light_source = default.LIGHT_MAX - 1,
1387 type = "wallmounted",
1388 wall_top = {-0.1, 0.5 - 0.6, -0.1, 0.1, 0.5, 0.1},
1389 wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5 + 0.6, 0.1},
1390 wall_side = {-0.5, -0.3, -0.1, -0.5 + 0.3, 0.3, 0.1},
1392 groups = {choppy = 2, dig_immediate = 3, flammable = 1, attached_node = 1},
1393 legacy_wallmounted = true,
1394 sounds = default.node_sound_defaults(),
1398 local chest_formspec =
1401 default.gui_bg_img ..
1402 default.gui_slots ..
1403 "list[current_name;main;0,0.3;8,4;]" ..
1404 "list[current_player;main;0,4.85;8,1;]" ..
1405 "list[current_player;main;0,6.08;8,3;8]" ..
1406 "listring[current_name;main]" ..
1407 "listring[current_player;main]" ..
1408 default.get_hotbar_bg(0,4.85)
1410 local function get_locked_chest_formspec(pos)
1411 local spos = pos.x .. "," .. pos.y .. "," .. pos.z
1415 default.gui_bg_img ..
1416 default.gui_slots ..
1417 "list[nodemeta:" .. spos .. ";main;0,0.3;8,4;]" ..
1418 "list[current_player;main;0,4.85;8,1;]" ..
1419 "list[current_player;main;0,6.08;8,3;8]" ..
1420 "listring[nodemeta:" .. spos .. ";main]" ..
1421 "listring[current_player;main]" ..
1422 default.get_hotbar_bg(0,4.85)
1426 local function has_locked_chest_privilege(meta, player)
1429 if minetest.check_player_privs(player, "protection_bypass") then
1432 name = player:get_player_name()
1434 if name ~= meta:get_string("owner") then
1440 minetest.register_node("default:chest", {
1441 description = "Chest",
1442 tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
1443 "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
1444 paramtype2 = "facedir",
1445 groups = {choppy = 2, oddly_breakable_by_hand = 2},
1446 legacy_facedir_simple = true,
1447 is_ground_content = false,
1448 sounds = default.node_sound_wood_defaults(),
1450 on_construct = function(pos)
1451 local meta = minetest.get_meta(pos)
1452 meta:set_string("formspec", chest_formspec)
1453 meta:set_string("infotext", "Chest")
1454 local inv = meta:get_inventory()
1455 inv:set_size("main", 8*4)
1457 can_dig = function(pos,player)
1458 local meta = minetest.get_meta(pos);
1459 local inv = meta:get_inventory()
1460 return inv:is_empty("main")
1462 on_metadata_inventory_move = function(pos, from_list, from_index,
1463 to_list, to_index, count, player)
1464 minetest.log("action", player:get_player_name() ..
1465 " moves stuff in chest at " .. minetest.pos_to_string(pos))
1467 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1468 minetest.log("action", player:get_player_name() ..
1469 " moves " .. stack:get_name() ..
1470 " to chest at " .. minetest.pos_to_string(pos))
1472 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1473 minetest.log("action", player:get_player_name() ..
1474 " takes " .. stack:get_name() ..
1475 " from chest at " .. minetest.pos_to_string(pos))
1477 on_blast = function(pos)
1479 default.get_inventory_drops(pos, "main", drops)
1480 drops[#drops+1] = "default:chest"
1481 minetest.remove_node(pos)
1486 minetest.register_node("default:chest_locked", {
1487 description = "Locked Chest",
1488 tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
1489 "default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
1490 paramtype2 = "facedir",
1491 groups = {choppy = 2, oddly_breakable_by_hand = 2},
1492 legacy_facedir_simple = true,
1493 is_ground_content = false,
1494 sounds = default.node_sound_wood_defaults(),
1496 after_place_node = function(pos, placer)
1497 local meta = minetest.get_meta(pos)
1498 meta:set_string("owner", placer:get_player_name() or "")
1499 meta:set_string("infotext", "Locked Chest (owned by " ..
1500 meta:get_string("owner") .. ")")
1502 on_construct = function(pos)
1503 local meta = minetest.get_meta(pos)
1504 meta:set_string("infotext", "Locked Chest")
1505 meta:set_string("owner", "")
1506 local inv = meta:get_inventory()
1507 inv:set_size("main", 8 * 4)
1509 can_dig = function(pos,player)
1510 local meta = minetest.get_meta(pos);
1511 local inv = meta:get_inventory()
1512 return inv:is_empty("main") and has_locked_chest_privilege(meta, player)
1514 allow_metadata_inventory_move = function(pos, from_list, from_index,
1515 to_list, to_index, count, player)
1516 local meta = minetest.get_meta(pos)
1517 if not has_locked_chest_privilege(meta, player) then
1522 allow_metadata_inventory_put = function(pos, listname, index, stack, player)
1523 local meta = minetest.get_meta(pos)
1524 if not has_locked_chest_privilege(meta, player) then
1527 return stack:get_count()
1529 allow_metadata_inventory_take = function(pos, listname, index, stack, player)
1530 local meta = minetest.get_meta(pos)
1531 if not has_locked_chest_privilege(meta, player) then
1534 return stack:get_count()
1536 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1537 minetest.log("action", player:get_player_name() ..
1538 " moves " .. stack:get_name() ..
1539 " to locked chest at " .. minetest.pos_to_string(pos))
1541 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1542 minetest.log("action", player:get_player_name() ..
1543 " takes " .. stack:get_name() ..
1544 " from locked chest at " .. minetest.pos_to_string(pos))
1546 on_rightclick = function(pos, node, clicker)
1547 local meta = minetest.get_meta(pos)
1548 if has_locked_chest_privilege(meta, clicker) then
1549 minetest.show_formspec(
1550 clicker:get_player_name(),
1551 "default:chest_locked",
1552 get_locked_chest_formspec(pos)
1556 on_blast = function() end,
1560 local bookshelf_formspec =
1563 default.gui_bg_img ..
1564 default.gui_slots ..
1565 "list[context;books;0,0.3;8,2;]" ..
1566 "list[current_player;main;0,2.85;8,1;]" ..
1567 "list[current_player;main;0,4.08;8,3;8]" ..
1568 "listring[context;books]" ..
1569 "listring[current_player;main]" ..
1570 default.get_hotbar_bg(0,2.85)
1572 minetest.register_node("default:bookshelf", {
1573 description = "Bookshelf",
1574 tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
1575 is_ground_content = false,
1576 groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
1577 sounds = default.node_sound_wood_defaults(),
1579 on_construct = function(pos)
1580 local meta = minetest.get_meta(pos)
1581 meta:set_string("formspec", bookshelf_formspec)
1582 local inv = meta:get_inventory()
1583 inv:set_size("books", 8 * 2)
1585 can_dig = function(pos,player)
1586 local inv = minetest.get_meta(pos):get_inventory()
1587 return inv:is_empty("books")
1589 allow_metadata_inventory_put = function(pos, listname, index, stack)
1590 if minetest.get_item_group(stack:get_name(), "book") ~= 0 then
1591 return stack:get_count()
1595 on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
1596 minetest.log("action", player:get_player_name() ..
1597 " moves stuff in bookshelf at " .. minetest.pos_to_string(pos))
1599 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1600 minetest.log("action", player:get_player_name() ..
1601 " moves stuff to bookshelf at " .. minetest.pos_to_string(pos))
1603 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1604 minetest.log("action", player:get_player_name() ..
1605 " takes stuff from bookshelf at " .. minetest.pos_to_string(pos))
1607 on_blast = function(pos)
1609 default.get_inventory_drops(pos, "books", drops)
1610 drops[#drops+1] = "default:bookshelf"
1611 minetest.remove_node(pos)
1616 local function register_sign(material, desc, def)
1617 minetest.register_node("default:sign_wall_" .. material, {
1618 description = desc .. " Sign",
1619 drawtype = "nodebox",
1620 tiles = {"default_sign_wall_" .. material .. ".png"},
1621 inventory_image = "default_sign_" .. material .. ".png",
1622 wield_image = "default_sign_" .. material .. ".png",
1623 paramtype = "light",
1624 paramtype2 = "wallmounted",
1625 sunlight_propagates = true,
1626 is_ground_content = false,
1629 type = "wallmounted",
1630 wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
1631 wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
1632 wall_side = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
1634 groups = def.groups,
1635 legacy_wallmounted = true,
1636 sounds = def.sounds,
1638 on_construct = function(pos)
1639 --local n = minetest.get_node(pos)
1640 local meta = minetest.get_meta(pos)
1641 meta:set_string("formspec", "field[text;;${text}]")
1642 meta:set_string("infotext", "\"\"")
1644 on_receive_fields = function(pos, formname, fields, sender)
1645 --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
1646 local player_name = sender:get_player_name()
1647 if minetest.is_protected(pos, player_name) then
1648 minetest.record_protection_violation(pos, player_name)
1651 local meta = minetest.get_meta(pos)
1652 if not fields.text then return end
1653 minetest.log("action", (player_name or "") .. " wrote \"" ..
1654 fields.text .. "\" to sign at " .. minetest.pos_to_string(pos))
1655 meta:set_string("text", fields.text)
1656 meta:set_string("infotext", '"' .. fields.text .. '"')
1661 register_sign("wood", "Wooden", {
1662 sounds = default.node_sound_wood_defaults(),
1663 groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3}
1666 register_sign("steel", "Steel", {
1667 sounds = default.node_sound_defaults(),
1668 groups = {cracky = 2, attached_node = 1}
1671 minetest.register_node("default:ladder_wood", {
1672 description = "Wooden Ladder",
1673 drawtype = "signlike",
1674 tiles = {"default_ladder_wood.png"},
1675 inventory_image = "default_ladder_wood.png",
1676 wield_image = "default_ladder_wood.png",
1677 paramtype = "light",
1678 paramtype2 = "wallmounted",
1679 sunlight_propagates = true,
1682 is_ground_content = false,
1684 type = "wallmounted",
1685 --wall_top = = <default>
1686 --wall_bottom = = <default>
1687 --wall_side = = <default>
1689 groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2},
1690 legacy_wallmounted = true,
1691 sounds = default.node_sound_wood_defaults(),
1694 minetest.register_node("default:ladder_steel", {
1695 description = "Steel Ladder",
1696 drawtype = "signlike",
1697 tiles = {"default_ladder_steel.png"},
1698 inventory_image = "default_ladder_steel.png",
1699 wield_image = "default_ladder_steel.png",
1700 paramtype = "light",
1701 paramtype2 = "wallmounted",
1702 sunlight_propagates = true,
1705 is_ground_content = false,
1707 type = "wallmounted",
1708 --wall_top = = <default>
1709 --wall_bottom = = <default>
1710 --wall_side = = <default>
1712 groups = {cracky = 2},
1713 sounds = default.node_sound_stone_defaults(),
1716 default.register_fence("default:fence_wood", {
1717 description = "Wooden Fence",
1718 texture = "default_fence_wood.png",
1719 material = "default:wood",
1720 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1721 sounds = default.node_sound_wood_defaults()
1724 default.register_fence("default:fence_acacia_wood", {
1725 description = "Acacia Fence",
1726 texture = "default_fence_acacia_wood.png",
1727 material = "default:acacia_wood",
1728 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1729 sounds = default.node_sound_wood_defaults()
1732 default.register_fence("default:fence_junglewood", {
1733 description = "Junglewood Fence",
1734 texture = "default_fence_junglewood.png",
1735 material = "default:junglewood",
1736 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1737 sounds = default.node_sound_wood_defaults()
1740 default.register_fence("default:fence_pine_wood", {
1741 description = "Pine Fence",
1742 texture = "default_fence_pine_wood.png",
1743 material = "default:pine_wood",
1744 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1745 sounds = default.node_sound_wood_defaults()
1748 default.register_fence("default:fence_aspen_wood", {
1749 description = "Aspen Fence",
1750 texture = "default_fence_aspen_wood.png",
1751 material = "default:aspen_wood",
1752 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1753 sounds = default.node_sound_wood_defaults()
1756 minetest.register_node("default:glass", {
1757 description = "Glass",
1758 drawtype = "glasslike_framed_optional",
1759 tiles = {"default_glass.png", "default_glass_detail.png"},
1760 paramtype = "light",
1761 sunlight_propagates = true,
1762 is_ground_content = false,
1763 groups = {cracky = 3, oddly_breakable_by_hand = 3},
1764 sounds = default.node_sound_glass_defaults(),
1767 minetest.register_node("default:obsidian_glass", {
1768 description = "Obsidian Glass",
1769 drawtype = "glasslike_framed_optional",
1770 tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
1771 paramtype = "light",
1772 is_ground_content = false,
1773 sunlight_propagates = true,
1774 sounds = default.node_sound_glass_defaults(),
1775 groups = {cracky = 3},
1779 minetest.register_node("default:rail", {
1780 description = "Rail",
1781 drawtype = "raillike",
1782 tiles = {"default_rail.png", "default_rail_curved.png",
1783 "default_rail_t_junction.png", "default_rail_crossing.png"},
1784 inventory_image = "default_rail.png",
1785 wield_image = "default_rail.png",
1786 paramtype = "light",
1787 sunlight_propagates = true,
1789 is_ground_content = false,
1792 -- but how to specify the dimensions for curved and sideways rails?
1793 fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
1795 groups = {bendy = 2, dig_immediate = 2, attached_node = 1,
1796 connect_to_raillike = minetest.raillike_group("rail")},
1800 minetest.register_node("default:brick", {
1801 description = "Brick Block",
1802 tiles = {"default_brick.png"},
1803 is_ground_content = false,
1804 groups = {cracky = 3},
1805 sounds = default.node_sound_stone_defaults(),
1809 minetest.register_node("default:meselamp", {
1810 description = "Mese Lamp",
1811 drawtype = "glasslike",
1812 tiles = {"default_meselamp.png"},
1813 paramtype = "light",
1814 sunlight_propagates = true,
1815 is_ground_content = false,
1816 groups = {cracky = 3, oddly_breakable_by_hand = 3},
1817 sounds = default.node_sound_glass_defaults(),
1818 light_source = default.LIGHT_MAX,
1825 minetest.register_node("default:cloud", {
1826 description = "Cloud",
1827 tiles = {"default_cloud.png"},
1828 is_ground_content = false,
1829 sounds = default.node_sound_defaults(),
1830 groups = {not_in_creative_inventory = 1},
1833 minetest.register_node("default:nyancat", {
1834 description = "Nyan Cat",
1835 tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
1836 "default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
1837 paramtype2 = "facedir",
1838 groups = {cracky = 2},
1839 is_ground_content = false,
1840 legacy_facedir_simple = true,
1841 sounds = default.node_sound_defaults(),
1844 minetest.register_node("default:nyancat_rainbow", {
1845 description = "Nyan Cat Rainbow",
1847 "default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90",
1848 "default_nc_rb.png", "default_nc_rb.png"
1850 paramtype2 = "facedir",
1851 groups = {cracky = 2},
1852 is_ground_content = false,
1853 sounds = default.node_sound_defaults(),