Advertisement
Guest User

Untitled

a guest
Dec 6th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. minetest.register_node("palmtree:palm_trunk", {
  2. description = "Tree",
  3. tiles = {"palm_trunk.png", "palm_leaves.png", "palm_trunk.png"},
  4. is_ground_content = true,
  5. groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
  6. sounds = default.node_sound_wood_defaults(),
  7. })
  8. minetest.register_node("palmtree:palm_leaves", {
  9. description = "Leaves",
  10. drawtype = "allfaces_optional",
  11. visual_scale = 1.3,
  12. tiles = {"palm_leaves.png"},
  13. paramtype = "light",
  14. groups = {snappy=3, leafdecay=3, flammable=2},
  15. drop = {
  16. max_items = 1,
  17. items = {
  18. {
  19. -- player will get sapling with 1/20 chance
  20. items = {'palmtree:palm_sapling'},
  21. rarity = 20,
  22. },
  23. {
  24. -- player will get leaves only if he get no saplings,
  25. -- this is because max_items is 1
  26. items = {'palmtree:palm_leaves'},
  27. }
  28. }
  29. },
  30. sounds = default.node_sound_leaves_defaults(),
  31. })
  32. minetest.register_node("palmtree:palm_sapling", {
  33. description = "Sapling",
  34. drawtype = "plantlike",
  35. visual_scale = 1.0,
  36. tiles = {"palmtree:palm_sapling"},
  37. inventory_image = "palm_sapling.png",
  38. wield_image = "palm_sapling.png",
  39. paramtype = "light",
  40. walkable = false,
  41. groups = {snappy=2,dig_immediate=3,flammable=2},
  42. sounds = default.node_sound_defaults(),
  43. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement