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},
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},
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},
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, attached_node = 1},
1023 sounds = default.node_sound_leaves_defaults(),
1026 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
1029 on_place = function(itemstack, placer, pointed_thing)
1030 -- place a random dry grass node
1031 local stack = ItemStack("default:dry_grass_" .. math.random(1, 5))
1032 local ret = minetest.item_place(stack, placer, pointed_thing)
1033 return ItemStack("default:dry_grass_1 " ..
1034 itemstack:get_count() - (1 - ret:get_count()))
1039 minetest.register_node("default:dry_grass_" .. i, {
1040 description = "Dry Grass",
1041 drawtype = "plantlike",
1043 tiles = {"default_dry_grass_" .. i .. ".png"},
1044 inventory_image = "default_dry_grass_" .. i .. ".png",
1045 wield_image = "default_dry_grass_" .. i .. ".png",
1046 paramtype = "light",
1047 sunlight_propagates = true,
1049 buildable_to = true,
1050 groups = {snappy = 3, flammable = 3, flora = 1,
1051 attached_node = 1, not_in_creative_inventory=1},
1052 drop = "default:dry_grass_1",
1053 sounds = default.node_sound_leaves_defaults(),
1056 fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
1065 minetest.register_node("default:water_source", {
1066 description = "Water Source",
1067 drawtype = "liquid",
1070 name = "default_water_source_animated.png",
1072 type = "vertical_frames",
1080 -- New-style water source material (mostly unused)
1082 name = "default_water_source_animated.png",
1084 type = "vertical_frames",
1089 backface_culling = false,
1093 paramtype = "light",
1097 buildable_to = true,
1098 is_ground_content = false,
1101 liquidtype = "source",
1102 liquid_alternative_flowing = "default:water_flowing",
1103 liquid_alternative_source = "default:water_source",
1104 liquid_viscosity = 1,
1105 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
1106 groups = {water = 3, liquid = 3, puts_out_fire = 1},
1109 minetest.register_node("default:water_flowing", {
1110 description = "Flowing Water",
1111 drawtype = "flowingliquid",
1112 tiles = {"default_water.png"},
1115 name = "default_water_flowing_animated.png",
1116 backface_culling = false,
1118 type = "vertical_frames",
1125 name = "default_water_flowing_animated.png",
1126 backface_culling = true,
1128 type = "vertical_frames",
1136 paramtype = "light",
1137 paramtype2 = "flowingliquid",
1141 buildable_to = true,
1142 is_ground_content = false,
1145 liquidtype = "flowing",
1146 liquid_alternative_flowing = "default:water_flowing",
1147 liquid_alternative_source = "default:water_source",
1148 liquid_viscosity = 1,
1149 post_effect_color = {a = 103, r = 30, g = 60, b = 90},
1150 groups = {water = 3, liquid = 3, puts_out_fire = 1,
1151 not_in_creative_inventory = 1},
1155 minetest.register_node("default:river_water_source", {
1156 description = "River Water Source",
1157 drawtype = "liquid",
1160 name = "default_river_water_source_animated.png",
1162 type = "vertical_frames",
1171 name = "default_river_water_source_animated.png",
1173 type = "vertical_frames",
1178 backface_culling = false,
1182 paramtype = "light",
1186 buildable_to = true,
1187 is_ground_content = false,
1190 liquidtype = "source",
1191 liquid_alternative_flowing = "default:river_water_flowing",
1192 liquid_alternative_source = "default:river_water_source",
1193 liquid_viscosity = 1,
1194 liquid_renewable = false,
1196 post_effect_color = {a = 103, r = 30, g = 76, b = 90},
1197 groups = {water = 3, liquid = 3, puts_out_fire = 1},
1200 minetest.register_node("default:river_water_flowing", {
1201 description = "Flowing River Water",
1202 drawtype = "flowingliquid",
1203 tiles = {"default_river_water.png"},
1206 name = "default_river_water_flowing_animated.png",
1207 backface_culling = false,
1209 type = "vertical_frames",
1216 name = "default_river_water_flowing_animated.png",
1217 backface_culling = true,
1219 type = "vertical_frames",
1227 paramtype = "light",
1228 paramtype2 = "flowingliquid",
1232 buildable_to = true,
1233 is_ground_content = false,
1236 liquidtype = "flowing",
1237 liquid_alternative_flowing = "default:river_water_flowing",
1238 liquid_alternative_source = "default:river_water_source",
1239 liquid_viscosity = 1,
1240 liquid_renewable = false,
1242 post_effect_color = {a = 103, r = 30, g = 76, b = 90},
1243 groups = {water = 3, liquid = 3, puts_out_fire = 1,
1244 not_in_creative_inventory = 1},
1248 minetest.register_node("default:lava_source", {
1249 description = "Lava Source",
1250 drawtype = "liquid",
1253 name = "default_lava_source_animated.png",
1255 type = "vertical_frames",
1263 -- New-style lava source material (mostly unused)
1265 name = "default_lava_source_animated.png",
1267 type = "vertical_frames",
1272 backface_culling = false,
1275 paramtype = "light",
1276 light_source = default.LIGHT_MAX - 1,
1280 buildable_to = true,
1281 is_ground_content = false,
1284 liquidtype = "source",
1285 liquid_alternative_flowing = "default:lava_flowing",
1286 liquid_alternative_source = "default:lava_source",
1287 liquid_viscosity = 7,
1288 liquid_renewable = false,
1289 damage_per_second = 4 * 2,
1290 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
1291 groups = {lava = 3, liquid = 2, hot = 3, igniter = 1},
1294 minetest.register_node("default:lava_flowing", {
1295 description = "Flowing Lava",
1296 drawtype = "flowingliquid",
1297 tiles = {"default_lava.png"},
1300 name = "default_lava_flowing_animated.png",
1301 backface_culling = false,
1303 type = "vertical_frames",
1310 name = "default_lava_flowing_animated.png",
1311 backface_culling = true,
1313 type = "vertical_frames",
1320 paramtype = "light",
1321 paramtype2 = "flowingliquid",
1322 light_source = default.LIGHT_MAX - 1,
1326 buildable_to = true,
1327 is_ground_content = false,
1330 liquidtype = "flowing",
1331 liquid_alternative_flowing = "default:lava_flowing",
1332 liquid_alternative_source = "default:lava_source",
1333 liquid_viscosity = 7,
1334 liquid_renewable = false,
1335 damage_per_second = 4 * 2,
1336 post_effect_color = {a = 191, r = 255, g = 64, b = 0},
1337 groups = {lava = 3, liquid = 2, hot = 3, igniter = 1,
1338 not_in_creative_inventory = 1},
1342 -- Tools / "Advanced" crafting / Non-"natural"
1345 minetest.register_node("default:torch", {
1346 description = "Torch",
1347 drawtype = "torchlike",
1350 name = "default_torch_on_floor_animated.png",
1352 type = "vertical_frames",
1359 name="default_torch_on_ceiling_animated.png",
1361 type = "vertical_frames",
1368 name="default_torch_animated.png",
1370 type = "vertical_frames",
1377 inventory_image = "default_torch_on_floor.png",
1378 wield_image = "default_torch_on_floor.png",
1379 paramtype = "light",
1380 paramtype2 = "wallmounted",
1381 sunlight_propagates = true,
1382 is_ground_content = false,
1384 light_source = default.LIGHT_MAX - 1,
1386 type = "wallmounted",
1387 wall_top = {-0.1, 0.5 - 0.6, -0.1, 0.1, 0.5, 0.1},
1388 wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5 + 0.6, 0.1},
1389 wall_side = {-0.5, -0.3, -0.1, -0.5 + 0.3, 0.3, 0.1},
1391 groups = {choppy = 2, dig_immediate = 3, flammable = 1, attached_node = 1},
1392 legacy_wallmounted = true,
1393 sounds = default.node_sound_defaults(),
1397 local chest_formspec =
1400 default.gui_bg_img ..
1401 default.gui_slots ..
1402 "list[current_name;main;0,0.3;8,4;]" ..
1403 "list[current_player;main;0,4.85;8,1;]" ..
1404 "list[current_player;main;0,6.08;8,3;8]" ..
1405 "listring[current_name;main]" ..
1406 "listring[current_player;main]" ..
1407 default.get_hotbar_bg(0,4.85)
1409 local function get_locked_chest_formspec(pos)
1410 local spos = pos.x .. "," .. pos.y .. "," .. pos.z
1414 default.gui_bg_img ..
1415 default.gui_slots ..
1416 "list[nodemeta:" .. spos .. ";main;0,0.3;8,4;]" ..
1417 "list[current_player;main;0,4.85;8,1;]" ..
1418 "list[current_player;main;0,6.08;8,3;8]" ..
1419 "listring[nodemeta:" .. spos .. ";main]" ..
1420 "listring[current_player;main]" ..
1421 default.get_hotbar_bg(0,4.85)
1425 local function has_locked_chest_privilege(meta, player)
1428 if minetest.check_player_privs(player, "protection_bypass") then
1431 name = player:get_player_name()
1433 if name ~= meta:get_string("owner") then
1439 minetest.register_node("default:chest", {
1440 description = "Chest",
1441 tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
1442 "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
1443 paramtype2 = "facedir",
1444 groups = {choppy = 2, oddly_breakable_by_hand = 2},
1445 legacy_facedir_simple = true,
1446 is_ground_content = false,
1447 sounds = default.node_sound_wood_defaults(),
1449 on_construct = function(pos)
1450 local meta = minetest.get_meta(pos)
1451 meta:set_string("formspec", chest_formspec)
1452 meta:set_string("infotext", "Chest")
1453 local inv = meta:get_inventory()
1454 inv:set_size("main", 8*4)
1456 can_dig = function(pos,player)
1457 local meta = minetest.get_meta(pos);
1458 local inv = meta:get_inventory()
1459 return inv:is_empty("main")
1461 on_metadata_inventory_move = function(pos, from_list, from_index,
1462 to_list, to_index, count, player)
1463 minetest.log("action", player:get_player_name() ..
1464 " moves stuff in chest at " .. minetest.pos_to_string(pos))
1466 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1467 minetest.log("action", player:get_player_name() ..
1468 " moves " .. stack:get_name() ..
1469 " to chest at " .. minetest.pos_to_string(pos))
1471 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1472 minetest.log("action", player:get_player_name() ..
1473 " takes " .. stack:get_name() ..
1474 " from chest at " .. minetest.pos_to_string(pos))
1478 minetest.register_node("default:chest_locked", {
1479 description = "Locked Chest",
1480 tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
1481 "default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
1482 paramtype2 = "facedir",
1483 groups = {choppy = 2, oddly_breakable_by_hand = 2},
1484 legacy_facedir_simple = true,
1485 is_ground_content = false,
1486 sounds = default.node_sound_wood_defaults(),
1488 after_place_node = function(pos, placer)
1489 local meta = minetest.get_meta(pos)
1490 meta:set_string("owner", placer:get_player_name() or "")
1491 meta:set_string("infotext", "Locked Chest (owned by " ..
1492 meta:get_string("owner") .. ")")
1494 on_construct = function(pos)
1495 local meta = minetest.get_meta(pos)
1496 meta:set_string("infotext", "Locked Chest")
1497 meta:set_string("owner", "")
1498 local inv = meta:get_inventory()
1499 inv:set_size("main", 8 * 4)
1501 can_dig = function(pos,player)
1502 local meta = minetest.get_meta(pos);
1503 local inv = meta:get_inventory()
1504 return inv:is_empty("main") and has_locked_chest_privilege(meta, player)
1506 allow_metadata_inventory_move = function(pos, from_list, from_index,
1507 to_list, to_index, count, player)
1508 local meta = minetest.get_meta(pos)
1509 if not has_locked_chest_privilege(meta, player) then
1514 allow_metadata_inventory_put = function(pos, listname, index, stack, player)
1515 local meta = minetest.get_meta(pos)
1516 if not has_locked_chest_privilege(meta, player) then
1519 return stack:get_count()
1521 allow_metadata_inventory_take = function(pos, listname, index, stack, player)
1522 local meta = minetest.get_meta(pos)
1523 if not has_locked_chest_privilege(meta, player) then
1526 return stack:get_count()
1528 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1529 minetest.log("action", player:get_player_name() ..
1530 " moves " .. stack:get_name() ..
1531 " to locked chest at " .. minetest.pos_to_string(pos))
1533 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1534 minetest.log("action", player:get_player_name() ..
1535 " takes " .. stack:get_name() ..
1536 " from locked chest at " .. minetest.pos_to_string(pos))
1538 on_rightclick = function(pos, node, clicker)
1539 local meta = minetest.get_meta(pos)
1540 if has_locked_chest_privilege(meta, clicker) then
1541 minetest.show_formspec(
1542 clicker:get_player_name(),
1543 "default:chest_locked",
1544 get_locked_chest_formspec(pos)
1548 on_blast = function() end,
1552 local bookshelf_formspec =
1555 default.gui_bg_img ..
1556 default.gui_slots ..
1557 "list[context;books;0,0.3;8,2;]" ..
1558 "list[current_player;main;0,2.85;8,1;]" ..
1559 "list[current_player;main;0,4.08;8,3;8]" ..
1560 "listring[context;books]" ..
1561 "listring[current_player;main]" ..
1562 default.get_hotbar_bg(0,2.85)
1564 minetest.register_node("default:bookshelf", {
1565 description = "Bookshelf",
1566 tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
1567 is_ground_content = false,
1568 groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
1569 sounds = default.node_sound_wood_defaults(),
1571 on_construct = function(pos)
1572 local meta = minetest.get_meta(pos)
1573 meta:set_string("formspec", bookshelf_formspec)
1574 local inv = meta:get_inventory()
1575 inv:set_size("books", 8 * 2)
1577 can_dig = function(pos,player)
1578 local inv = minetest.get_meta(pos):get_inventory()
1579 return inv:is_empty("books")
1581 allow_metadata_inventory_put = function(pos, listname, index, stack)
1582 if minetest.get_item_group(stack:get_name(), "book") ~= 0 then
1583 return stack:get_count()
1587 on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
1588 minetest.log("action", player:get_player_name() ..
1589 " moves stuff in bookshelf at " .. minetest.pos_to_string(pos))
1591 on_metadata_inventory_put = function(pos, listname, index, stack, player)
1592 minetest.log("action", player:get_player_name() ..
1593 " moves stuff to bookshelf at " .. minetest.pos_to_string(pos))
1595 on_metadata_inventory_take = function(pos, listname, index, stack, player)
1596 minetest.log("action", player:get_player_name() ..
1597 " takes stuff from bookshelf at " .. minetest.pos_to_string(pos))
1601 local function register_sign(material, desc, def)
1602 minetest.register_node("default:sign_wall_" .. material, {
1603 description = desc .. " Sign",
1604 drawtype = "nodebox",
1605 tiles = {"default_sign_wall_" .. material .. ".png"},
1606 inventory_image = "default_sign_" .. material .. ".png",
1607 wield_image = "default_sign_" .. material .. ".png",
1608 paramtype = "light",
1609 paramtype2 = "wallmounted",
1610 sunlight_propagates = true,
1611 is_ground_content = false,
1614 type = "wallmounted",
1615 wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
1616 wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
1617 wall_side = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
1619 groups = def.groups,
1620 legacy_wallmounted = true,
1621 sounds = def.sounds,
1623 on_construct = function(pos)
1624 --local n = minetest.get_node(pos)
1625 local meta = minetest.get_meta(pos)
1626 meta:set_string("formspec", "field[text;;${text}]")
1627 meta:set_string("infotext", "\"\"")
1629 on_receive_fields = function(pos, formname, fields, sender)
1630 --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
1631 local player_name = sender:get_player_name()
1632 if minetest.is_protected(pos, player_name) then
1633 minetest.record_protection_violation(pos, player_name)
1636 local meta = minetest.get_meta(pos)
1637 if not fields.text then return end
1638 minetest.log("action", (player_name or "") .. " wrote \"" ..
1639 fields.text .. "\" to sign at " .. minetest.pos_to_string(pos))
1640 meta:set_string("text", fields.text)
1641 meta:set_string("infotext", '"' .. fields.text .. '"')
1646 register_sign("wood", "Wooden", {
1647 sounds = default.node_sound_wood_defaults(),
1648 groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3}
1651 register_sign("steel", "Steel", {
1652 sounds = default.node_sound_defaults(),
1653 groups = {cracky = 2, attached_node = 1}
1656 minetest.register_node("default:ladder_wood", {
1657 description = "Wooden Ladder",
1658 drawtype = "signlike",
1659 tiles = {"default_ladder_wood.png"},
1660 inventory_image = "default_ladder_wood.png",
1661 wield_image = "default_ladder_wood.png",
1662 paramtype = "light",
1663 paramtype2 = "wallmounted",
1664 sunlight_propagates = true,
1667 is_ground_content = false,
1669 type = "wallmounted",
1670 --wall_top = = <default>
1671 --wall_bottom = = <default>
1672 --wall_side = = <default>
1674 groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2},
1675 legacy_wallmounted = true,
1676 sounds = default.node_sound_wood_defaults(),
1679 minetest.register_node("default:ladder_steel", {
1680 description = "Steel Ladder",
1681 drawtype = "signlike",
1682 tiles = {"default_ladder_steel.png"},
1683 inventory_image = "default_ladder_steel.png",
1684 wield_image = "default_ladder_steel.png",
1685 paramtype = "light",
1686 paramtype2 = "wallmounted",
1687 sunlight_propagates = true,
1690 is_ground_content = false,
1692 type = "wallmounted",
1693 --wall_top = = <default>
1694 --wall_bottom = = <default>
1695 --wall_side = = <default>
1697 groups = {cracky = 2},
1698 sounds = default.node_sound_stone_defaults(),
1701 default.register_fence("default:fence_wood", {
1702 description = "Wooden Fence",
1703 texture = "default_fence_wood.png",
1704 material = "default:wood",
1705 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1706 sounds = default.node_sound_wood_defaults()
1709 default.register_fence("default:fence_acacia_wood", {
1710 description = "Acacia Fence",
1711 texture = "default_fence_acacia_wood.png",
1712 material = "default:acacia_wood",
1713 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1714 sounds = default.node_sound_wood_defaults()
1717 default.register_fence("default:fence_junglewood", {
1718 description = "Junglewood Fence",
1719 texture = "default_fence_junglewood.png",
1720 material = "default:junglewood",
1721 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1722 sounds = default.node_sound_wood_defaults()
1725 default.register_fence("default:fence_pine_wood", {
1726 description = "Pine Fence",
1727 texture = "default_fence_pine_wood.png",
1728 material = "default:pine_wood",
1729 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1730 sounds = default.node_sound_wood_defaults()
1733 default.register_fence("default:fence_aspen_wood", {
1734 description = "Aspen Fence",
1735 texture = "default_fence_aspen_wood.png",
1736 material = "default:aspen_wood",
1737 groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
1738 sounds = default.node_sound_wood_defaults()
1741 minetest.register_node("default:glass", {
1742 description = "Glass",
1743 drawtype = "glasslike_framed_optional",
1744 tiles = {"default_glass.png", "default_glass_detail.png"},
1745 paramtype = "light",
1746 sunlight_propagates = true,
1747 is_ground_content = false,
1748 groups = {cracky = 3, oddly_breakable_by_hand = 3},
1749 sounds = default.node_sound_glass_defaults(),
1752 minetest.register_node("default:obsidian_glass", {
1753 description = "Obsidian Glass",
1754 drawtype = "glasslike_framed_optional",
1755 tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
1756 paramtype = "light",
1757 is_ground_content = false,
1758 sunlight_propagates = true,
1759 sounds = default.node_sound_glass_defaults(),
1760 groups = {cracky = 3},
1764 minetest.register_node("default:rail", {
1765 description = "Rail",
1766 drawtype = "raillike",
1767 tiles = {"default_rail.png", "default_rail_curved.png",
1768 "default_rail_t_junction.png", "default_rail_crossing.png"},
1769 inventory_image = "default_rail.png",
1770 wield_image = "default_rail.png",
1771 paramtype = "light",
1772 sunlight_propagates = true,
1774 is_ground_content = false,
1777 -- but how to specify the dimensions for curved and sideways rails?
1778 fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
1780 groups = {bendy = 2, dig_immediate = 2, attached_node = 1,
1781 connect_to_raillike = minetest.raillike_group("rail")},
1785 minetest.register_node("default:brick", {
1786 description = "Brick Block",
1787 tiles = {"default_brick.png"},
1788 is_ground_content = false,
1789 groups = {cracky = 3},
1790 sounds = default.node_sound_stone_defaults(),
1794 minetest.register_node("default:meselamp", {
1795 description = "Mese Lamp",
1796 drawtype = "glasslike",
1797 tiles = {"default_meselamp.png"},
1798 paramtype = "light",
1799 sunlight_propagates = true,
1800 is_ground_content = false,
1801 groups = {cracky = 3, oddly_breakable_by_hand = 3},
1802 sounds = default.node_sound_glass_defaults(),
1803 light_source = default.LIGHT_MAX,
1810 minetest.register_node("default:cloud", {
1811 description = "Cloud",
1812 tiles = {"default_cloud.png"},
1813 is_ground_content = false,
1814 sounds = default.node_sound_defaults(),
1815 groups = {not_in_creative_inventory = 1},
1818 minetest.register_node("default:nyancat", {
1819 description = "Nyan Cat",
1820 tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
1821 "default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
1822 paramtype2 = "facedir",
1823 groups = {cracky = 2},
1824 is_ground_content = false,
1825 legacy_facedir_simple = true,
1826 sounds = default.node_sound_defaults(),
1829 minetest.register_node("default:nyancat_rainbow", {
1830 description = "Nyan Cat Rainbow",
1832 "default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90",
1833 "default_nc_rb.png", "default_nc_rb.png"
1835 paramtype2 = "facedir",
1836 groups = {cracky = 2},
1837 is_ground_content = false,
1838 sounds = default.node_sound_defaults(),