SHARE
TWEET

Untitled

a guest Jul 24th, 2013 30 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- nodes taken from https://github.com/minetest/minetest_game
  2. minetest.register_node('waterplant:plant', {
  3.         description = "waterplant",
  4.         drawtype = 'plantlike',
  5.         tile_images = { 'flowers_big_dandelion_yellow.png' },
  6.         inventory_image = 'flowers_dandelion_yellow.png',
  7.         wield_image = 'flowers_dandelion_yellow.png',
  8.         sunlight_propagates = true,
  9.         paramtype = 'light',
  10.         walkable = false,
  11.         groups = { snappy = 3, flammable=2, junglegrass=1, flora=1 },
  12.         sounds = default.node_sound_leaves_defaults(),
  13.         drop = 'default:junglegrass',
  14.  
  15.         selection_box = {
  16.                 type = "fixed",
  17.                 fixed = {-0.4, 1.5, -0.4, 0.4, 2.5, 0.4},
  18.         },
  19.         buildable_to = true,
  20.  
  21.  
  22.         visual_scale = 2.5,
  23. --        light_source = 3,
  24. })
  25.  
  26.  
  27. minetest.register_node('waterplant:torch', {
  28.         description = "underwarter torch",
  29.         drawtype = 'plantlike', --"torchlike",
  30.         --tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
  31.         tiles = {
  32.                 {name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
  33.                 {name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
  34.                 {name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
  35.         },
  36.         inventory_image = "default_torch_on_floor.png",
  37.         wield_image = "default_torch_on_floor.png",
  38.         paramtype = "light",
  39.         paramtype2 = "wallmounted",
  40.         sunlight_propagates = true,
  41.         walkable = false,
  42.         light_source = LIGHT_MAX-1,
  43.         selection_box = {
  44.                 type = "wallmounted",
  45.                 wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
  46.                 wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+2.6, 0.1},
  47.                 wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
  48.         },
  49.         groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1},
  50.         legacy_wallmounted = true,
  51.         sounds = default.node_sound_defaults(),
  52.  
  53.  
  54. --        visual_scale = {4.0, 4.0},
  55.         visual_scale = 2.5,
  56. })
  57.  
  58. minetest.register_node("waterplant:dirt", {
  59.         description = "dirt for waterplants (lets sunlight through)",
  60.         --drawtype = "glasslike",
  61.         tiles = {"default_dirt.png"},
  62. --        inventory_image = minetest.inventorycube("default_glass.png"),
  63.         paramtype = "light",
  64.         sunlight_propagates = true,
  65.         groups = {cracky=3,oddly_breakable_by_hand=3},
  66. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top