Advertisement
PlayfulLemon

Untitled

Jun 7th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. -- Add the decowood node
  2. minetest.register_node("tutorial:decowood", {
  3.     tiles = {"tutorial_decowood.png"},
  4.     groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
  5. })
  6.  
  7. -- Add the decostick craftitem
  8. minetest.register_craftitem("tutorial:decostick", {
  9.     inventory_image = "tutorial_decostick.png",
  10.     groups = {stick=1},
  11. })
  12.  
  13. -- Add the crafting recipe for decowood
  14. minetest.register_craft({
  15.     output = 'tutorial:decowood 2',
  16.     recipe = {
  17.         {'default:wood', 'default:wood', ''},
  18.         {'default:wood', 'default:wood', ''},
  19.         {'', '', ''},
  20.     }
  21. })
  22.  
  23. -- Add the furnace recipe for decosticks
  24. minetest.register_craft({
  25.     type = "cooking",
  26.     recipe = "tutorial:decowood",
  27.     output = "tutorial:decostick",
  28. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement