Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- nodes taken from https://github.com/minetest/minetest_game
- minetest.register_node('waterplant:plant', {
- description = "waterplant",
- drawtype = 'plantlike',
- tile_images = { 'flowers_big_dandelion_yellow.png' },
- inventory_image = 'flowers_dandelion_yellow.png',
- wield_image = 'flowers_dandelion_yellow.png',
- sunlight_propagates = true,
- paramtype = 'light',
- walkable = false,
- groups = { snappy = 3, flammable=2, junglegrass=1, flora=1 },
- sounds = default.node_sound_leaves_defaults(),
- drop = 'default:junglegrass',
- selection_box = {
- type = "fixed",
- fixed = {-0.4, 1.5, -0.4, 0.4, 2.5, 0.4},
- },
- buildable_to = true,
- visual_scale = 2.5,
- -- light_source = 3,
- })
- minetest.register_node('waterplant:torch', {
- description = "underwarter torch",
- drawtype = 'plantlike', --"torchlike",
- --tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
- tiles = {
- {name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
- {name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
- {name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
- },
- inventory_image = "default_torch_on_floor.png",
- wield_image = "default_torch_on_floor.png",
- paramtype = "light",
- paramtype2 = "wallmounted",
- sunlight_propagates = true,
- walkable = false,
- light_source = LIGHT_MAX-1,
- selection_box = {
- type = "wallmounted",
- wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
- wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+2.6, 0.1},
- wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
- },
- groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1},
- legacy_wallmounted = true,
- sounds = default.node_sound_defaults(),
- -- visual_scale = {4.0, 4.0},
- visual_scale = 2.5,
- })
- minetest.register_node("waterplant:dirt", {
- description = "dirt for waterplants (lets sunlight through)",
- --drawtype = "glasslike",
- tiles = {"default_dirt.png"},
- -- inventory_image = minetest.inventorycube("default_glass.png"),
- paramtype = "light",
- sunlight_propagates = true,
- groups = {cracky=3,oddly_breakable_by_hand=3},
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement