summaryrefslogtreecommitdiff
path: root/presetrules.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar+github@foo-projects.org>2016-05-27 16:08:53 -0700
committerAuke Kok <sofar+github@foo-projects.org>2016-05-27 16:08:53 -0700
commit7ecb29e87f1f272f92d0fec871dd525a80a9537c (patch)
tree9c57001d333fc36a0561a3e8bfdac0df0108532b /presetrules.lua
parent4c743f9c4d1d263c5c36edb6a5dbaab7e2bdc6e4 (diff)
Convert digilines to a mod (not modpack). (#32)
Digilines is probably used by most people in its entirety. I've retained the ability to disable inventory, rtc, lightsensor and LCD by the minetest settings "diglines_enable_rtc" etc.. If set to "false", these components will not be loaded. It is assumed by default that these are enabled. In the conversion the digilines_lcd:lcd node was renamed to digilines:lcd (same for all the other nodes). To retain backwards compatibility I've provided aliases for each of these nodes.
Diffstat (limited to 'presetrules.lua')
-rw-r--r--presetrules.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/presetrules.lua b/presetrules.lua
new file mode 100644
index 0000000..8d5e35b
--- /dev/null
+++ b/presetrules.lua
@@ -0,0 +1,15 @@
+digiline.rules = {}
+
+digiline.rules.default =
+{{x=0, y=0, z=-1},
+{x=1, y=0, z=0},
+{x=-1, y=0, z=0},
+{x=0, y=0, z=1},
+{x=1, y=1, z=0},
+{x=1, y=-1, z=0},
+{x=-1, y=1, z=0},
+{x=-1, y=-1, z=0},
+{x=0, y=1, z=1},
+{x=0, y=-1, z=1},
+{x=0, y=1, z=-1},
+{x=0, y=-1, z=-1}}