NULL Null

Recreate the webdisplays mod, and if u need an chromium thing, use https://modrinth.com/mod/mcef-modern

Kodari AI
KodariOct 30 at 10:59 am 14
WebDisplaysRecreation
A Minecraft Fabric mod for version 1.21.1 that recreates the WebDisplays mod functionality, allowing players to display web content on in-game screens and monitors. The mod integrates with the MCEF Modern library from Modrinth to provide embedded Chromium browser capabilities, enabling interactive web pages, videos, and dynamic content to be rendered on custom display blocks. Features include creating resizable display screens, loading URLs, interacting with web content via mouse clicks, and multi-player synchronization of displayed content. The mod adds new block types that can be placed in the world and configured with specific web addresses, supporting both static and interactive web experiences directly within the Minecraft environment.

I’ll build a Fabric 1.21.11 in-world web-display mod, first checking whether MCEF Modern provides a compatible browser API.

MCEF Modern supports Fabric 1.21.11, so the browser engine is viable. I’m building a survival-craftable display block that opens an interactive Chromium page.

  • Register a craftable browser-terminal block, creative tab, item/block assets, mining tag, recipe, and loot.

  • Add a client-only owo browser screen with URL navigation, using MCEF Modern when installed.

  • Set up Fabric split source sets and the GPU-texture mixin needed to display Chromium frames.

Created a Fabric 1.21.11 browser-terminal mod. Craft the Web Display with 6 iron ingots, 2 glass panes, and 1 redstone; it drops itself when mined and appears in its own creative tab.

Right-clicking the block opens an interactive Chromium browser with an address bar. MCEF Modern is optional at startup but required for browsing—install its 1.21.11 Fabric version from Modrinth.

This is a first-pass recreation: pages open in the browser UI, but aren’t yet rendered onto the block in the world or synchronized to other players.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
18 526
src/main/java/com/kodari/webdisplay/WebDisplayMod.java
package com.kodari.webdisplay;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.itemgroup.v1.FabricItemGroup;
import net.minecraft.block.AbstractBlock;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;

public final class WebDisplayMod implements ModInitializer {
    public static final String MOD_ID = "webdisplay";
    public static Block WEB_DISPLAY;
    public static Item WEB_DISPLAY_ITEM;

    @Override
    public void onInitialize() {
        Identifier blockId = Identifier.of(MOD_ID, "web_display");
        RegistryKey<Block> blockKey = RegistryKey.of(RegistryKeys.BLOCK, blockId);
        WEB_DISPLAY = Registry.register(
                Registries.BLOCK,
                blockKey,
                new Block(AbstractBlock.Settings.create().strength(3.0f, 3.0f).registryKey(blockKey))
        );

        Identifier itemId = Identifier.of(MOD_ID, "web_display");
        RegistryKey<Item> itemKey = RegistryKey.of(RegistryKeys.ITEM, itemId);
        WEB_DISPLAY_ITEM = Registry.register(
                Registries.ITEM,
                itemKey,
                new BlockItem(WEB_DISPLAY, new Item.Settings().registryKey(itemKey))
        );

        RegistryKey<ItemGroup> groupKey = RegistryKey.of(
                RegistryKeys.ITEM_GROUP,
                Identifier.of(MOD_ID, "devices")
        );
        Registry.register(
                Registries.ITEM_GROUP,
                groupKey,
                FabricItemGroup.builder()
                        .displayName(Text.translatable("itemGroup.webdisplay.devices"))
                        .icon(() -> new ItemStack(WEB_DISPLAY_ITEM))
                        .entries((context, entries) -> entries.add(WEB_DISPLAY_ITEM))
                        .build()
        );
    }
}