diff options
Diffstat (limited to '')
-rw-r--r-- | cwd/assets/altcraft/scripts/init.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua index f001017..5021a00 100644 --- a/cwd/assets/altcraft/scripts/init.lua +++ b/cwd/assets/altcraft/scripts/init.lua @@ -5,6 +5,7 @@ local plugin = { onUnload = nil, onChangeState = nil, onTick = nil, + onRequestBlockInfo = nil, } function plugin.onLoad () @@ -32,8 +33,12 @@ function plugin.onTick (deltaTime) end end -blocks = require("altcraft/blocks") -print("From init: "..blocks) +local blocks = require("altcraft/blocks") +blocks.RegisterBlocks() + +function plugin.onRequestBlockInfo(blockPos) + return blocks.GetBlockInfo(blockPos) +end AC.RegisterPlugin(plugin) plugin = nil
\ No newline at end of file |