From d899b21504c02cae99eb3688e561cf9bad4120c4 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 27 Jul 2020 09:05:53 +0500 Subject: Support for non-overworld dimensions --- cwd/assets/altcraft/scripts/blocks.lua | 6 +++--- cwd/assets/altcraft/scripts/init.lua | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'cwd/assets/altcraft') 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 -- cgit v1.2.3