All versions
V0.8R
Release
Changes to import()5 months ago 13
Compatibility
Minecraft: Java Edition
24w35a
1.21–1.21.1
1.20.x
Platform
Data Pack
Required content
Any compatible version
Changes
import() and file path changes
- 1.1 - File paths
Libraries are now stored in ".imported/" file.
- 1.2 - Files created by libraries!
The big change. Now, files created by libraries are stored inside a specific file named after their source name. Ex.: "libx/filex".
New functions in loader.lua and misc
- 2.1 - repair() to re create outdated files (old architecture)
repair() re creates 3 main files: ".libraries", ".loadedtxt" and ".autoimport". More files will be added throughout the time.
- 2.2 - repo_configtxt now hidden.
- 2.3 - file() now actually looks up for the first unnamed table.
When "t = true", the system would take the first value inside the table instead of the first unnamed table.
Bugs fixed
- 3.1 - file() not adding tables with "add" argument.
- 3.2 - file() delete not working.
- 3.3 - Scheck registry
setrepo() wasn't registring Scheck boolean value, which would cause the function to stop working in some situations.
Using the function
- 4.1 - repair()
>> repair()
> Repairing...
> .libraries done.
> .loadedtxt done.
> .autoimport done.
> Repaired!


