123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- minetest.register_node("nodetest:papyrus_roots", {
- description = "Papyrus Roots",
- tiles = {"nodetest_papyrus_roots.png"},
- paramtype = "light",
- is_ground_content = true,
- liquids_pointable = true,
- after_dig_node = function(pos, node, metadata, digger)
- node.name = "default:papyrus"
- default.dig_up(pos, node, digger)
- end,
- groups = {snappy=3, flammable=2, oddly_breakable_by_hand=1, soil=1},
- sounds = default.node_sound_leaves_defaults(),
- })
- minetest.register_alias("default:papyrus_roots", "nodetest:papyrus_roots")
- --
- -- Horizontal trees
- --
- minetest.register_node("nodetest:tree_horizontal", {
- description = "Tree",
- tiles = {
- "default_tree.png",
- "default_tree.png",
- "default_tree.png^[transformR90",
- "default_tree.png^[transformR90",
- "default_tree_top.png",
- "default_tree_top.png"
- },
- paramtype2 = "facedir",
- groups = {tree_horizontal=1, choppy=2, flammable=1},
- sounds = default.node_sound_wood_defaults(),
- on_construct = function(pos)
- default.rotate_horizontal(pos)
- end,
- })
- minetest.register_alias("default:tree_horizontal", "nodetest:tree_horizontal")
- minetest.register_node("nodetest:jungletree_horizontal", {
- description = "Jungle Tree",
- tiles = {
- "default_jungletree.png",
- "default_jungletree.png",
- "default_jungletree.png^[transformR90",
- "default_jungletree.png^[transformR90",
- "default_jungletree_top.png",
- "default_jungletree_top.png"
- },
- paramtype2 = "facedir",
- groups = {tree_horizontal=1, choppy=2, flammable=1},
- sounds = default.node_sound_wood_defaults(),
- on_construct = function(pos)
- default.rotate_horizontal(pos)
- end,
- })
- minetest.register_alias("default:jungletree_horizontal", "nodetest:jungletree_horizontal")
- minetest.register_node("nodetest:seedling", {
- description = "Seedling",
- drawtype = "torchlike",
- tiles = {"nodetest_seedling.png"},
- inventory_image = "nodetest_seedling.png",
- wield_image = "nodetest_seedling.png",
- paramtype = "light",
- sunlight_propagates = true,
- waving = 1,
- walkable = false,
- buildable_to = true,
- floodable = true,
- is_ground_content = true,
- groups = {snappy=3, dig_immediate=3, flammable=3, attached_node=1},
- sounds = default.node_sound_leaves_defaults(),
- selection_box = {
- type = "fixed",
- fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
- },
- })
- minetest.register_node("nodetest:bonfire", {
- description = "Bonfire",
- drawtype = "plantlike",
- visual_scale = 1.0,
- tiles = {
- {name="nodetest_bonfire_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}
- },
- inventory_image = "nodetest_bonfire.png",
- wield_image = "nodetest_bonfire.png",
- paramtype = "light",
- sunlight_propagates = true,
- walkable = false,
- drop = "",
- damage_per_second = 1,
- light_source = 12,
- groups = {snappy=3, attached_node=1},
- sounds = default.node_sound_defaults(),
- selection_box = {
- type = "fixed",
- fixed = {-0.375, -0.5, -0.375, 0.375, 0, 0.375},
- },
- })
|