apples.lua 764 B

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