summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft/scripts/init.lua
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-27 23:12:53 +0200
committerGitHub <noreply@github.com>2020-07-27 23:12:53 +0200
commitf1e6ccd798b643308c2b468fc081bd2ad552c840 (patch)
treebfa380e1b81ab848766becff8322e783e4dcde1a /cwd/assets/altcraft/scripts/init.lua
parentMerge pull request #40 from LaG1924/lua-scripting (diff)
parentSupport for non-overworld dimensions (diff)
downloadAltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.gz
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.bz2
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.lz
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.xz
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.tar.zst
AltCraft-f1e6ccd798b643308c2b468fc081bd2ad552c840.zip
Diffstat (limited to 'cwd/assets/altcraft/scripts/init.lua')
-rw-r--r--cwd/assets/altcraft/scripts/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua
index 5021a00..96b5ec3 100644
--- a/cwd/assets/altcraft/scripts/init.lua
+++ b/cwd/assets/altcraft/scripts/init.lua
@@ -40,5 +40,9 @@ function plugin.onRequestBlockInfo(blockPos)
return blocks.GetBlockInfo(blockPos)
end
+AC.RegisterDimension(0, Dimension.new("overworld", true))
+AC.RegisterDimension(-1, Dimension.new("the_nether", false))
+AC.RegisterDimension(1, Dimension.new("the_end", false))
+
AC.RegisterPlugin(plugin)
plugin = nil \ No newline at end of file