summaryrefslogtreecommitdiff
path: root/castle_farming/hides.lua
diff options
context:
space:
mode:
Diffstat (limited to 'castle_farming/hides.lua')
-rw-r--r--castle_farming/hides.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/castle_farming/hides.lua b/castle_farming/hides.lua
new file mode 100644
index 0000000..73a9df2
--- /dev/null
+++ b/castle_farming/hides.lua
@@ -0,0 +1,32 @@
+-- internationalization boilerplate
+local MP = minetest.get_modpath(minetest.get_current_modname())
+local S, NS = dofile(MP.."/intllib.lua")
+
+minetest.register_alias("castle:hides", "castle_farming:hides")
+
+minetest.register_node("castle_farming:hides", {
+ drawtype = "nodebox",
+ description = S("Hides"),
+ inventory_image = "castle_hide.png",
+ paramtype = "light",
+ walkable = false,
+ tiles = {'castle_hide.png'},
+ climbable = true,
+ paramtype2 = "wallmounted",
+ groups = {dig_immediate=2},
+ node_box = {
+ type = "wallmounted",
+ wall_top = {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5},
+ wall_bottom = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
+ wall_side = {-0.5, -0.5, -0.5, -0.4375, 0.5, 0.5},
+ },
+})
+
+minetest.register_craft( {
+ type = "shapeless",
+ output = "castle_farming:hides 6",
+ recipe = { "wool:white" , "bucket:bucket_water" },
+ replacements = {
+ { 'bucket:bucket_water', 'bucket:bucket_empty' }
+ }
+})