diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-05-19 12:25:03 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-05-19 12:25:03 +0200 |
commit | 35e786c2b4632f92518c8881db650ba63beecd5c (patch) | |
tree | 831345bd105884b65349afae04dddd88b1ec4bb8 /cwd/assets/altcraft | |
parent | Implemented GameState lua-api (diff) | |
download | AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar.gz AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar.bz2 AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar.lz AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar.xz AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.tar.zst AltCraft-35e786c2b4632f92518c8881db650ba63beecd5c.zip |
Diffstat (limited to 'cwd/assets/altcraft')
-rw-r--r-- | cwd/assets/altcraft/scripts/blocks.lua | 2 | ||||
-rw-r--r-- | cwd/assets/altcraft/scripts/init.lua | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cwd/assets/altcraft/scripts/blocks.lua b/cwd/assets/altcraft/scripts/blocks.lua new file mode 100644 index 0000000..ad00742 --- /dev/null +++ b/cwd/assets/altcraft/scripts/blocks.lua @@ -0,0 +1,2 @@ +print("Hello from altcraft/blocks!") +return "CONTENT OF ac/blocks"
\ No newline at end of file diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua index de58b90..f001017 100644 --- a/cwd/assets/altcraft/scripts/init.lua +++ b/cwd/assets/altcraft/scripts/init.lua @@ -32,5 +32,8 @@ function plugin.onTick (deltaTime) end end +blocks = require("altcraft/blocks") +print("From init: "..blocks) + AC.RegisterPlugin(plugin) plugin = nil
\ No newline at end of file |