ChosenMark

Develop a plugin that allows players to apply glow ink sacs to Concrete and Stained Glass blocks, transforming them into Glowing Concrete and Glowing Stained Glass. Include configurable options for glow intensity and duration, along with permissions for different player roles to access this feature. Ensure compatibility with the Create mod for seamless integration and enhanced visual effects.

Kodari AI
KodariJun 29 at 6:15 pm 2
GlowCraft
A Fabric mod that enables players to apply glow ink sacs to Concrete and Stained Glass blocks, transforming them into luminous variants. Features configurable glow intensity and duration, permission-based access for different player roles, and seamless Create mod compatibility. Includes 32 glowing block variants (16 concrete + 16 glass colors) with a YACL-based configuration screen for server administrators.

Let me read the learning docs first to ensure I use correct 1.21.11 APIs.

I’ll build this mod. Let me start with the Java source files, build config, and assets.

GlowCraft
A Fabric mod that transforms concrete and stained glass into glowing variants using glow ink sacs. Features configurable light intensity, timed or permanent glow, permission-based access, and Create mod particle integration. All 16 dye colors are supported for both block types, with a YACL-based configuration screen for server admins.

I’ll build the full GlowCraft mod. Let me start with build configuration, then source code, then resource files.

GlowCraft
A Fabric mod that transforms concrete and stained glass into glowing variants using glow ink sacs. Features configurable light intensity, timed or permanent glow, permission-based access, and Create mod particle integration. All 16 dye colors are supported for both block types, with a YACL-based configuration screen for server administrators.
ChosenMark

make it for neoforge 1.21.1

Kodari AI
KodariJun 29 at 6:52 pm 3

This is a full conversion from Fabric 1.21.11 to NeoForge 1.21.1. I need to rewrite the build system, all Java code, config, and mod metadata. Let me start

This is a full platform conversion from Fabric 1.21.11 to NeoForge 1.21.1. Changes needed: build system, mod metadata (fabric.mod.json → neoforge.mods.toml), all Java code (Yarn → Mojmap), registration (Fabric Registry → NeoForge DeferredRegister), events (UseBlockCallback → PlayerInteractEvent), config (YACL → NeoForge ModConfigSpec), client source set structure, and asset paths (items/ → models/item/).

  1. Build files + mod metadata

  2. Java: main, blocks, config, transformer, client

  3. Delete Fabric artifacts + create item models

Here’s the full plan — converting Fabric 1.21.11 → NeoForge 1.21.1:

  1. Build system: build.gradle, settings.gradle, gradle.properties → NeoGradle 8

  2. Mod metadata: fabric.mod.json → META-INF/neoforge.mods.toml + pack.mcmeta

  3. Java classes: Yarn→Mojmap, Fabric→NeoForge APIs (DeferredRegister, PlayerInteractEvent, ModConfigSpec)

  4. Assets: items/ → models/item/, add render_type to glass block models

  5. Delete: fabric.mod.json, manifest.kod, ModMenuIntegration.java, GlowCraftClient.java, src/client/ source set

Starting with build files + mod metadata:

Now writing all files. Starting with build system, mod metadata, and all Java classes

Now writing all files for NeoForge 1.21.1. I’ll batch independent operations together.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
140 1,824
src/client/java/com/example/glowcraft/GlowCraftClient.java
package com.example.glowcraft;

import com.example.glowcraft.block.ModBlocks;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.BlockRenderLayerMap;
import net.minecraft.client.render.RenderLayer;

public class GlowCraftClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        // All glowing stained glass variants use translucent rendering
        for (var block : ModBlocks.ALL_GLASS) {
            BlockRenderLayerMap.putBlock(block, RenderLayer.getTranslucent());
        }
    }
}