Advertisement
Guest User

Untitled

a guest
Feb 1st, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. minetest.register_craftitem("cakes:egg", {
  2. description = "Egg",
  3. inventory_image = "cakes_egg.png",
  4. })
  5.  
  6. minetest.register_craftitem("cakes:milk", {
  7. description = "Milk",
  8. inventory_image = "cakes_milk.png",
  9. })
  10.  
  11. minetest.register_craftitem("cakes:sugar", {
  12. description = "Sugar",
  13. inventory_image = "cakes_sugar.png",
  14. })
  15.  
  16. minetest.register_craftitem("cakes:cake", {
  17. description = "Cake",
  18. inventory_image = "cakes_cake.png",
  19. on_use = minetest.item_eat(12, cakes:cake_slice 8),
  20. })
  21.  
  22. minetest.register_craftitem("cakes:cake_slice", {
  23. description = "Cake Slice",
  24. inventory_image = "cakes_cake.png",
  25. on_use = minetest.item_eat(3),
  26. })
  27.  
  28. minetest.register_craft({
  29. output = "cakes:cake",
  30. recipe = {
  31. {'cakes:milk', 'cakes:milk', 'cakes:milk'},
  32. {'cakes:sugar', 'cakes:egg', 'cakes:sugar'},
  33. {'farming:wheat', 'farming:wheat', 'farming:wheat'},
  34. }
  35. })
  36.  
  37. minetest.register_craft({
  38. output = "cakes:cake_slice 9",
  39. recipe = {
  40. {'cakes:cake'},
  41. }
  42. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement