Guest User

init.lua

a guest
Feb 18th, 2012
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. -- Register tools, tool attributes
  2.  
  3. minetest.register_tool("hatchet:mese", {
  4.     description = "Mese Hatchet",
  5.     image = "mese_hatchet.png",
  6.     tool_digging_properties = {
  7.         basetime = 1.0,
  8.         dt_weight = 4,
  9.         dt_crackiness = -0.2,
  10.         dt_crumbliness = 1,
  11.         dt_cuttability = -0.1,
  12.         basedurability = 1337,
  13.         dd_weight = 0,
  14.         dd_crackiness = 0,
  15.         dd_crumbliness = 0,
  16.         dd_cuttability = 0,
  17.     },
  18. })
  19. minetest.register_tool("hatchet:steel", {
  20.     description = "Steel Hatchet",
  21.     image = "steel_hatchet.png",
  22.     tool_digging_properties = {
  23.         basetime = 1.0,
  24.         dt_weight = 3,
  25.         dt_crackiness = -0.2,
  26.         dt_crumbliness = 1,
  27.         dt_cuttability = -0.5,
  28.         basedurability = 1337,
  29.         dd_weight = 0,
  30.         dd_crackiness = 0,
  31.         dd_crumbliness = 0,
  32.         dd_cuttability = 0,
  33.     },
  34. })
  35. -- Tool recipies
  36. minetest.register_craft({
  37.     output = 'tool "hatchet:mese"',
  38.     recipe = {
  39.         {'default:mese', 'default:mese'},
  40.         {'default:mese', 'default:mese'},
  41.         {'', 'default:stick'},
  42.     }
  43. })
  44. minetest.register_craft({
  45.     output = 'tool "hatchet:steel"',
  46.     recipe = {
  47.         {'default:steel_ingot', 'default:steel_ingot'},
  48.         {'default:steel_ingot', 'default:steel_ingot'},
  49.         {'', 'default:stick'},
  50.     }
  51. })
Advertisement
Add Comment
Please, Sign In to add comment