apples.lua 744 B

1234567891011121314151617181920
  1. moretrees = moretrees or {}
  2. minetest.register_node("moretrees:apple_tree_blossoms", {
  3. description = "Apple Tree Blossoms",
  4. drawtype = "allfaces_optional",
  5. tiles = {"moretrees_apple_tree_leaves.png^moretrees_apple_tree_blossoms.png"},
  6. paramtype = "light",
  7. waving = 1,
  8. is_ground_content = false,
  9. groups = utility.dig_groups("leaves", {leafdecay = 3, flammable = 2, leaves = 1}),
  10. drop = moretrees.get_leafdrop_table(7, "moretrees:apple_tree_sapling", "moretrees:apple_tree_leaves"),
  11. sounds = default.node_sound_leaves_defaults(),
  12. movement_speed_multiplier = default.SLOW_SPEED,
  13. on_construct = enhanced_leafdecay.make_leaf_constructor({}),
  14. on_timer = enhanced_leafdecay.make_leaf_nodetimer({tree="moretrees:apple_tree_tree"}),
  15. })