aboutsummaryrefslogtreecommitdiff
path: root/functions.lua
diff options
context:
space:
mode:
authorBuckarooBanzay <BuckarooBanzay@users.noreply.github.com>2020-05-04 10:12:41 +0200
committerBuckarooBanzay <BuckarooBanzay@users.noreply.github.com>2020-05-04 10:12:41 +0200
commit6b54a59271a1b8b1cd8e680006d38f3c44cb7396 (patch)
treee4b474e1d6d5aa17d8fe930f883fa8eef20b5ead /functions.lua
parent17915aa4c5d17ccdbc2f1d68e98d66cd0a945092 (diff)
downloadmesecons_debug-6b54a59271a1b8b1cd8e680006d38f3c44cb7396.tar.gz
mesecons_debug-6b54a59271a1b8b1cd8e680006d38f3c44cb7396.zip
working mapblock whitelist
Diffstat (limited to 'functions.lua')
-rw-r--r--functions.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions.lua b/functions.lua
new file mode 100644
index 0000000..83887f8
--- /dev/null
+++ b/functions.lua
@@ -0,0 +1,7 @@
+
+
+function mesecons_debug.get_blockpos(pos)
+ return {x = math.floor(pos.x / 16),
+ y = math.floor(pos.y / 16),
+ z = math.floor(pos.z / 16)}
+end