nodes.lua.diff 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. 591a592,609
  2. > mat..".png", mat..".png", mat..".png",
  3. > mat..".png^mychisel_stint.png",
  4. > },
  5. > paramtype = "light",
  6. > paramtype2 = "facedir",
  7. > drop = item,
  8. > groups = gro,
  9. > node_box = squar4,
  10. > selection_box = squar4
  11. >
  12. > })
  13. >
  14. > minetest.register_node("mychisel:square_"..mat.."4", {
  15. > description = "cross"..desc.."4",
  16. > drawtype = "nodebox",
  17. > tiles = {
  18. > mat..".png",
  19. > mat..".png",
  20. 603a622,656
  21. > })
  22. >
  23. > minetest.register_node("mychisel:chisel_deco", {
  24. > drawtype = "nodebox",
  25. > paramtype = "light",
  26. > paramtype2 = "facedir",
  27. > tiles = {
  28. > "default_steel_block.png",
  29. > "default_wood.png",
  30. > "mychisel_chisel.png",
  31. > "mychisel_chisel.png",
  32. > "mychisel_chisel.png",
  33. > "mychisel_chisel.png"
  34. > },
  35. > groups = {
  36. > snappy=3,
  37. > flammable=2,
  38. > not_in_creative_inventory=1
  39. > },
  40. > node_box = {
  41. > type = "fixed",
  42. > fixed = {
  43. > {-0.125, -0.5, -0.125, 0.125, 0.25, 0.125}, -- NodeBox1
  44. > {-0.1875, 0.25, -0.1875, 0.1875, 0.5, 0.1875}, -- NodeBox2
  45. > }
  46. > },
  47. > sounds = default.node_sound_wood_defaults(),
  48. > on_dig = function(pos, node, digger)
  49. > if digger:is_player() and digger:get_inventory() then
  50. > local meta = minetest.env:get_meta(pos)
  51. > local wear_out = meta:get_int("wear")
  52. > digger:get_inventory():add_item("main", {name="mychisel:chisel", count=1, wear=wear_out, metadata=""})
  53. > end
  54. > minetest.remove_node(pos)
  55. > end,