▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/CC:Libraries
CC:Libraries

CC:Libraries

Adds libraries to CC:Tweaked.

22
0

Loaded libraries system changed.

release16 апреля 2026 г.

loadedlibs() system changed!

1.1 - System remake.

Previously, loadedlibs() would gather data from a simple table. Now, the table is stored in a file using fs. Now you are able to unload imported libs from past sections.

1.2 - Optimization.

The system isn't as optimized as it could be, so expect an optimization for upcoming updates.

loader.lua changes

2.1 - import() changes.

Using "import()" now loads all files from the repo. Make sure to verify if stablecheck is set to true. If it is, the function will only import files ended in "S".

2.2 - Tiny changes.

Added colors to some functions such as unload().

Bugs fixed

3.1 - loadedlibs() still showing deleted libraries.

When unloading libraries, loadedlibs() would still show them as loaded.

Using the functions

4.1 - import() now loads all files at once.

>> import(OptLib)
> Success! Imported OptLib V1.3.1
--------------------------------------
>> import()
> Success! Imported Optlib V1.3.1
> Success! Imported BetterStrings V1.2

-- Note: Imported all the files from luiplib repo ended in "S".

Note:

>> Install Global Packs if you didn't!!

New loading system in V0.4 Beta

beta11 апреля 2026 г.

Loading System remake!

1.1 - Previously, libraries would be imported into loadedlib.lua file. Now, each library has its own file.

loader.lua changes

2.1 - New function, unload(lib).

You can now unload libraries that are registred in loadedlibs() table (every imported library should be registred).

2.2 - Changes to loadedlibs() function.

helpcmd file is no longer shown in loadedlibs table.

2.3 - Changes to reimport(lib) function.

You can now choose which library to reimport.

2.4 - Commands usage.

rootcmds and libraries are now usable outside LUA.

2.5 - Text in startup.

A text is now shown in startup.

Using the functions

3.1 - unload(lib) unloads imported libraries.

-----------------------------------
>> import(OptLib)
> Success! Imported Optlib V1.3.1
>> unload(Optlib)
> Unloaded OptLib
-----------------------------------
>> import(OptLib)
> Success! Imported Optlib V1.3.1
>> import(BetterStrings)
> Success! Imported BetterStrings V1.2
>> unload()
> Unloaded OptLib
> Unloaded BetterStrings

3.2 - reimport(lib) reimports a specific library.

-----------------------------------
>> import(OptLib)
> Success! Imported Optlib V1.3.1
>> import(BetterStrings)
> Success! Imported BetterStrings V1.2
>> reimport(OptLib)
> Success! Imported Optlib V1.3.1
-----------------------------------
>> import(OptLib)
> Success! Imported Optlib V1.3.1
>> import(BetterStrings)
> Success! Imported BetterStrings V1.2
>> reimport()
> Success! Imported Optlib V1.3.1
> Success! Imported BetterStrings V1.2

Note:

>> This is Beta version, some bugs are expected.

>> For those who previously installed the datapack: Sorry, I forgot to add the Global Packs dependency. The datapack should work correctly now.

Import your library!

release2 апреля 2026 г.

Import your library!

1.1 - New function, setrepo(creator, repo, Scheck, branch).

Usage: Set your own repository! Unfortunately, you must set it in every different computer. Maybe I can figure out a way to apply the change to every computer, who knows?

1.2 - Inside your library:

Create "vers" variable and write the library's version. /Ex: vers = "1.0x"/

loader.lua changes

2.1 - New function, set(var, bool).

Usage: Set a boolean state for an existing or non-existing variable.

2.2 - New function, loadedlibs().

Usage: Show every currently loaded library.

Using the functions

3.1 - setrepo(creator, repo, Scheck, branch) sets a new repository for import().

setrepo("userx", "libx") -- Maps every file inside the repository.
----------------------------------
setrepo("userx", "libx", true) -- Maps every file that ends in "S" inside the repository.
----------------------------------
setrepo("userx", "libx", true, "alt") -- Maps every file that ends in "S" inside the branch "alt".
----------------------------------
setrepo() -- Back to the default repository.

3.2 - set(var, bool) creates or modifies a boolean.

set("random", true)
> defined to true
print(random)
> true
> 1

To mention:

Use rootcmds() to see every root command explanation.

Use helplib([lib]) to see every command inside a library.

loader.lua changes

release22 марта 2026 г.

Changes in loader.lua

1.1 - New function, collect(lib, key).

Usage: Collect functions, tables and variables without importing the an entire library.

1.2 - New function, helplib(lib).

Usage: Prints every command and its usage of a library.

1.3 - Changes to importhelp().

Now called rootcmds(). No longer present inside loader.lua. Instead it's now automatically imported from luipmb repo, offering a better control over it.

Using the functions

2.1 - constant(time, cmd) can be used without importing optlib library.

collect(optlib, 'constant')

2.2 - Every command inside optlib will be printed with an explanation to each.

helplib(optlib)

Release

release21 марта 2026 г.

Нет описания изменений

Совместимость

Minecraft: Java Edition

1.20.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Детали

Лицензия:MIT
Опубликован:3 недели назад
Обновлён:1 день назад
Главная