hides.lua 913 B

123456789101112131415161718192021222324252627282930313233
  1. -- internationalization boilerplate
  2. local MP = minetest.get_modpath(minetest.get_current_modname())
  3. local S, NS = dofile(MP.."/intllib.lua")
  4. minetest.register_alias("castle:hides", "castle_farming:hides")
  5. minetest.register_node("castle_farming:hides", {
  6. drawtype = "nodebox",
  7. description = S("Hides"),
  8. inventory_image = "castle_hide.png",
  9. paramtype = "light",
  10. walkable = false,
  11. tiles = {'castle_hide.png'},
  12. climbable = true,
  13. paramtype2 = "wallmounted",
  14. groups = {dig_immediate=2},
  15. node_box = {
  16. type = "wallmounted",
  17. wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
  18. wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
  19. wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
  20. },
  21. })
  22. minetest.register_craft( {
  23. type = "shapeless",
  24. output = "castle_farming:hides 6",
  25. recipe = { "wool:white" , "bucket:bucket_water" },
  26. replacements = {
  27. { 'bucket:bucket_water', 'bucket:bucket_empty' }
  28. }
  29. })