summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-07-23 02:42:41 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-07-23 02:42:41 +0300
commitc5cc8ec993bee4473af8c2e03c0f92ec0dc9453d (patch)
treec82b0b19531642ed6bc663095e91e76ba635ace4
parent6ada508370f8fa33c59f8592ebfaf308270d8d92 (diff)
first stuff
-rw-r--r--README.md1
-rw-r--r--books.lua7
-rw-r--r--depends.txt2
-rw-r--r--init.lua5
-rw-r--r--textures/errata_xpanes_black.pngbin0 -> 172 bytes
-rw-r--r--textures/errata_xpanes_pane_half_obsidian.pngbin0 -> 169 bytes
-rw-r--r--xpanes.lua12
7 files changed, 27 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+
diff --git a/books.lua b/books.lua
new file mode 100644
index 0000000..d82bbf2
--- /dev/null
+++ b/books.lua
@@ -0,0 +1,7 @@
+-- allow erasing the books
+
+minetest.register_craft({
+ type = "shapeless",
+ output = "default:book",
+ recipe = {"default:book_written", "default:paper"}
+})
diff --git a/depends.txt b/depends.txt
new file mode 100644
index 0000000..ddc201b
--- /dev/null
+++ b/depends.txt
@@ -0,0 +1,2 @@
+default
+xpanes
diff --git a/init.lua b/init.lua
index e69de29..5254b75 100644
--- a/init.lua
+++ b/init.lua
@@ -0,0 +1,5 @@
+local modpath = minetest.get_modpath("minetest_errata")
+
+dofile(modpath.."/books.lua")
+
+dofile(modpath.."/xpanes.lua") \ No newline at end of file
diff --git a/textures/errata_xpanes_black.png b/textures/errata_xpanes_black.png
new file mode 100644
index 0000000..98e835e
--- /dev/null
+++ b/textures/errata_xpanes_black.png
Binary files differ
diff --git a/textures/errata_xpanes_pane_half_obsidian.png b/textures/errata_xpanes_pane_half_obsidian.png
new file mode 100644
index 0000000..2b3ce56
--- /dev/null
+++ b/textures/errata_xpanes_pane_half_obsidian.png
Binary files differ
diff --git a/xpanes.lua b/xpanes.lua
new file mode 100644
index 0000000..c271a5c
--- /dev/null
+++ b/xpanes.lua
@@ -0,0 +1,12 @@
+xpanes.register_pane("obsidian_pane", {
+ description = "Obsidian Pane",
+ textures = {"default_obsidian_glass.png","errata_xpanes_pane_half_obsidian.png","errata_xpanes_black.png"},
+ inventory_image = "default_obsidian_glass.png",
+ wield_image = "default_obsidian_glass.png",
+ sounds = default.node_sound_glass_defaults(),
+ groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
+ recipe = {
+ {"default:obsidian_glass", "default:obsidian_glass", "default:obsidian_glass"},
+ {"default:obsidian_glass", "default:obsidian_glass", "default:obsidian_glass"}
+ }
+})