summaryrefslogtreecommitdiffstats
path: root/cwd/assets/altcraft
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-27 06:05:53 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2020-07-27 06:05:53 +0200
commitd899b21504c02cae99eb3688e561cf9bad4120c4 (patch)
treebfa380e1b81ab848766becff8322e783e4dcde1a /cwd/assets/altcraft
parentMerge pull request #40 from LaG1924/lua-scripting (diff)
downloadAltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar.gz
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar.bz2
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar.lz
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar.xz
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.tar.zst
AltCraft-d899b21504c02cae99eb3688e561cf9bad4120c4.zip
Diffstat (limited to 'cwd/assets/altcraft')
-rw-r--r--cwd/assets/altcraft/scripts/blocks.lua6
-rw-r--r--cwd/assets/altcraft/scripts/init.lua4
2 files changed, 7 insertions, 3 deletions
diff --git a/cwd/assets/altcraft/scripts/blocks.lua b/cwd/assets/altcraft/scripts/blocks.lua
index 325a8fc..5678677 100644
--- a/cwd/assets/altcraft/scripts/blocks.lua
+++ b/cwd/assets/altcraft/scripts/blocks.lua
@@ -301,9 +301,9 @@ local function RegisterBlocks()
AC.RegisterBlock(BlockId.new(89,0), true, "glowstone", "normal")
- AC.RegisterBlock(BlockId.new(90,0), true, "portal", "axis=z")
- AC.RegisterBlock(BlockId.new(90,1), true, "portal", "axis=x")
- AC.RegisterBlock(BlockId.new(90,2), true, "portal", "axis=z")
+ AC.RegisterBlock(BlockId.new(90,0), false, "portal", "axis=z")
+ AC.RegisterBlock(BlockId.new(90,1), false, "portal", "axis=x")
+ AC.RegisterBlock(BlockId.new(90,2), false, "portal", "axis=z")
AC.RegisterBlock(BlockId.new(93,0), true, "unpowered_repeater", "delay=1,facing=east,locked=false")
AC.RegisterBlock(BlockId.new(93,1), true, "unpowered_repeater", "delay=1,facing=south,locked=false")
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