CoreLib

CoreLib is a Cursed Legacy API compatible mod/library for Cursed Fabric.



A library mod based around block shading, models, particles, breakability and more.

As of Cursed Legacy API 1.0.0 or 1.1.0 CoreLib features were bundled into it.

Github Releases Description/Changelog:

Beta 1.7.3 Library for blocks

Core Lib

Based on Example Mod

This is a library for block and item models for Minecraft Beta 1.7.3, for Fabric.

Setup

Dev: "gradlew eclipse" or "gradlew rebuildLVT genSources eclipse" Build: "gradlew build"

Usage:

Tile and its item can have separate models, so there is two separate registries for model. You can register the same model if your tile should look same in the inventory and in the world.

Making a new tile with model:

// Block and Item registration

Id id = new Id("mod", "block"); // Making an ID

Tile tile = Registries.TILE.register(id, ModTile::new); // Making tile instance (ModTile - your tile class)

ItemType item = TileItems.registerTileItem(id, tile); // Making an item for your tile

// Making simple model and adding it to tile and item

Model model = new FullCubeModel("/assets/mod/textures/block/block.png"); // Making new model (from prefab)

ModelRegistry.addTileModel(tile, model); // Register model for tile

ModelRegistry.addItemModel(item, model); // Register model for item

Replacing vanilla tile model:

Model model = new FullBlockModel("/assets/mod/textures/block/block.png"); // Making new model (from prefab)

ItemType item = ItemType.byId[tile.id]; // Get item from tile

ModelRegistry.addTileModel(tile, model); // Register model for tile

ModelRegistry.addItemModel(item, model); // Register model for item

Replacing vanilla item model:

Model model = new FullBlockModel("/assets/mod/textures/block/block.png"); // Making new model (from prefab)

ModelRegistry.addItemModel(ItemType.stick, model); // Adding model to the stick item

1.0.0 Changelog:

Initial release. Included:

Block models api;

Procedural block & item atlases.

1.1.0 Changelog:

Block particle fixes;

Custom particle UV for models (need more work in future).

1.3.0 Changelog:

New Features:

Tile model prefabs for easier block registration (at this moment only cubic prefabs for simple blocks);

TileFacing enum (instead of direct integer indexes);

Possibility to use block destruction on models;

Fixes:

Fixed wrong rendering on item models;

Fixed block destruction

Renaming from block to tile;

Removed all chunk modification mixins, now library is client-side and safe to use.

Known Bugs:

Wrong shading on items (dark and constant light);

Rare item flicking in the world (looks like this happens only on certain block items).