Skip to content

diamonddevv/luafy2

Repository files navigation

luafy2

modern rewrite of luafy

writing scripts

i recommend the use of Lua Language Server when writing scripts for this mod. The mod generates the correct library file in LuaCATS format that allows for autocompletion and assistance when writing scripts using an IDE such as Vscode/IntelliJ Idea at <game directory>/luafy_scripts/autodoc.lua. (This path can be given to the IDE.)

This file is also available in this repository.

luaj

this mod uses the FiguraMC implementation of Lua.


rewrite goals

  • lua scripts system
    • loader
    • executor
      • with parameters
      • threaded
    • events
  • APIs / game interfaces
    • entity
    • block
    • item
    • world/server
    • math (vectors, mainly)
  • other
    • autogen documentation (actively working on)

what im not worried about right now

  • scripting language independence; im just focusing on lua
  • client sided stuff. there is a client source, but im not doing anything with it yet
  • sandboxing. run anything at your own risk

licensing

luafy is placed under the CC0-1.0 license, meaning you can basically do whatever you like with it. (this is not legal advice)

if you use it in anything, credit is not required but very much appreciated! (also, feel free to let me know! id love to see what people do with this!)

About

modern rewrite of luafy

Resources

License

Stars

Watchers

Forks