Glowing Totems

A Fabric mod that makes the Totem of Undying emit light, even when dropped as an item, just like torches!

759

Glowing Totems

Glowing Totems

A Fabric mod that makes the Totem of Undying emit light, even when dropped as an item, just like torches!

Features

- Data-Driven: The Totem of Undying now emits light level 15 when dropped as an item - Data-Driven: Works with existing lighting systems and doesn't interfere with other mods - Data-Driven: Uses LambDynamicLights' data-driven system for maximum compatibility

Requirements

- Minecraft 1.21.5, 1.21.6, or 1.21.7 - Fabric Loader 0.16.14+ - Fabric API - LambDynamicLights (required for the lighting effect to work) - Java 17 or higher

Installation

1. Install Fabric Loader for your Minecraft version 2. Install Fabric API 3. Install LambDynamicLights (required) 4. Download and install this mod

How to Use

1. Obtain a Totem of Undying 2. Drop it on the ground 3. The totem will now emit light like a torch!

Technical Details

This mod uses LambDynamicLights' data-driven system to register the Totem of Undying as a light source. The implementation is clean and efficient, requiring no mixins or complex modifications to vanilla code.

Files Structure

``` src/main/resources/assets/glowing-totems/dynamiclights/ ├── item/ │ └── totem_of_undying.json # Defines totem luminance └── entity/ └── item_entity_totem.json # Makes dropped totems glow ```

ADS