PolyMc-Extra Mod extends PolyMc with automatic server-side mod patching so vanilla players can join modded servers without installing client mods. It automatically repairs polymer block states for most mods and processes 19 different registry entry types before static registries freeze. Server owners control patching rules through a single config file, while the mod scans JAR files to build required resource packs. For custom patch modules, it also provides entry points, Java overlay helpers, and companion library hooks. Players and modpack builders get modded gameplay on standard clients without manual client setup.

PolyMc-Extra Mod

Features:

  • Automatic Server-Side Patching: Iterates through static registries before they freeze and patches missing items on the server so vanilla clients see modded content.
  • Polymer Block State Repair: Fixes corresponding polymer block states across most mods to keep custom blocks rendering and behaving properly on vanilla clients.
  • Resource Pack Generation: Scans loaded JAR files for needed assets and builds complete resource packs automatically.
  • Custom Patch Entry Points: Scans and executes every module’s polymc-extra entry point through PolyMcExtraEntrypoint.class for complex mods.
  • Verifies item component integrity during startup to prevent mismatched or broken items.
  • Registers built-in ExtraModelType definitions and special entity mappings alongside standard patches.
  • Lets server owners disable opaque block overrides or set custom display entity mappings through /config/polymc-extra.json.
  • Provides overlay helpers including PolymerBlock.registerOverlay, BlockWithElementHolder.registerOverlay, and PolymerItem.registerOverlay for custom modules.

Patched Registry Entries:

This mod processes the following 19 registry types automatically during patching:

  • Attribute: Processes custom attribute entries on the server.
  • EntityType: Patches custom mob and entity entries.
  • SoundEvent: Maps custom sound event entries for vanilla clients.
  • ComponentType: Handles custom item component type entries.
  • EnchantmentEffectComponentType: Patches enchantment effect component type entries.
  • EnchantmentLocationBaseEffectType: Patches location-based enchantment effect entries.
  • EnchantmentEntityEffectType: Patches entity-targeted enchantment effect entries.
  • StatusEffect: Processes custom status effect entries.
  • Potion: Patches custom potion registry entries.
  • ScreenHandlers: Maps custom menu and container screen handlers.
  • ConsumeEffectType: Patches custom consume effect type entries.
  • StatType: Processes custom statistic type entries.
  • CustomStat: Patches individual custom statistic entries.
  • PoiType: Handles custom point-of-interest type entries.
  • ItemGroup: Patches creative tab and item group entries.
  • Item: Processes modded item entries and checks component integrity.
  • Block: Patches modded block entries and repairs polymer block states.
  • BlockEntityType: Maps custom block entity type entries.
  • Profession: Patches custom villager profession entries.

Runtime Lifecycle:

  1. Registers the built-in ExtraModelType definitions.
  2. Registers special entity mappings.
  3. Scans and runs all module polymc-extra entry points using PolyMcExtraEntrypoint.class.
  4. Reads the config file before all static registry entries freeze, iterates through the registry, and patches each missing item on the server only.
  5. Verifies item components integrity.
  6. Scans JAR files for required resources and generates resource packs.

Companion Libraries for Custom Modules:

Writing custom patch modules requires familiarity with four companion libraries: Polymer, blockbench-import-library, polydex, and PolyMc. Build configurations also reference Polymer modules (polymer-core, polymer-blocks, polymer-resource-pack, polymer-resource-pack-extras, polymer-virtual-entity, polymer-autohost, and polymer-networking), resource-locator-api, factorytools, sgui, and server-translations-api.

Configuration:

The configuration file is located at /config/polymc-extra.json and controls how blocks are mapped:

  • DisabledOpaqueBlocks: Lists block IDs excluded from default opaque block patching.
  • CustomBlockModelTypeMappings: Maps exact block IDs or regex patterns (such as ^js_furniture_mod:.* and ^skniro_furniture:.*) to custom model types like BLOCK_DISPLAY_ENTITY and BLOCK_DISPLAY_ENTITY_NO_COLLISION.
{
	"DisabledOpaqueBlocks": [],
	"CustomBlockModelTypeMappings": {
		"citymod:stone_table": "BLOCK_DISPLAY_ENTITY",
		"citymod:road_block": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_yellow": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_yellow_connect": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_white_connect": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_yellow_double": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_zebra_crossing": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:roadblock_oblique": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:roadblock_yellow_oblique": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:roadblock_double_oblique": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:zebracrossing_oblique": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_straight": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"citymod:road_diamond": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:modern_light": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:computer_mouse": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:black_mirror": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:laptop": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:modern_clock": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:led_floor_lamp": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:shower": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:portable_laptop_stand": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:laptop_closed_portable_laptop_stand": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:cooktop": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:keyboard": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:monitor_setup": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:socket": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:modern_chair": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"js_furniture_mod:wood_chair": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"^js_furniture_mod:midi_.+$": "BLOCK_DISPLAY_ENTITY_NO_COLLISION",
		"^js_furniture_mod:.*": "BLOCK_DISPLAY_ENTITY",
		"^skniro_furniture:.*_(drawer|cabinet|fridge|kitchen_sink|oven|tv_stand)$": "BLOCK_DISPLAY_ENTITY",
		"^skniro_furniture:.*_(bed|cushion|sofa|window(?:_style.*)?|plate|chair(?:_.*)?|lamp)$": "BLOCK_DISPLAY_ENTITY_NO_COLLISION"
	}
}

How to Use:

Server Setup and Automatic Patching:

  1. Place this mod on your server alongside the mods you want to patch; vanilla players can join with no client mods.
  2. Start the server so the runtime lifecycle registers ExtraModelType, processes entry points, patches missing registry items, verifies item components, and builds resource packs from JAR files.
  3. Edit /config/polymc-extra.json if any block needs a custom model type, adding IDs to DisabledOpaqueBlocks or mapping patterns in CustomBlockModelTypeMappings to BLOCK_DISPLAY_ENTITY or BLOCK_DISPLAY_ENTITY_NO_COLLISION.

Building a Custom Patch Module:

  1. Create a libs folder inside your module project directory.
  2. Download the mod JAR file and put it inside that libs folder.
  3. Add flatDir { dirs 'libs' } along with the Polymer packages, resource-locator-api, factorytools, sgui, server-translations-api, your local libs JAR via modImplementation files(...), and polydex via modCompileOnly in your build.gradle file.
  4. Create a registry class with PolyMcExtraEntrypoint, add your mod namespace to PolyMcExtraPacks.NAMESPACES inside onInitialize(), and register overlays via PolymerBlock.registerOverlay, BlockWithElementHolder.registerOverlay, and PolymerItem.registerOverlay.
  5. Schedule BlockStateModelManager.addBlock(key, block) inside PolyMcExtra.LATE_INIT after checking PolymerBlockHelper.testJsonExist(block), and build custom block state classes with BaseFactoryBlock and PolymerBlockResourceUtils.requestEmpty to handle properties like BlockStateProperties.WATERLOGGED.
public class PolymerifyRegistry implements PolyMcExtraEntrypoint {

    @Override
    public void onInitialize() {
        PolymerifyRegistry.initialize();
        PolyMcExtraPacks.NAMESPACES.add(getNamespace());
    }
    
    public static void initialize() {
        registerPolymerBlock(BlockRegistry.XXX, XXXPolymerBlock.INSTANCE);
        registerPolymerItem(BlockRegistry.XXX, new PolymerItemImpl(BlockRegistry.XXX.asItem()));
    }

    public static void registerPolymerBlock(Block block, PolymerBlock polymerBlock) {
        ResourceLocation key = BuiltInRegistries.BLOCK.getKey(block);
        PolymerBlock.registerOverlay(block, polymerBlock);
        if (polymerBlock instanceof BlockWithElementHolder elementHolder) {
            BlockWithElementHolder.registerOverlay(block, elementHolder);
        }
        PolyMcExtra.LATE_INIT.add(new Runnable() {
            @Override
            public void run() {
                if (PolymerBlockHelper.testJsonExist(block)) {
                    BlockStateModelManager.addBlock(key, block);
                }
            }
        });
    }

    public static void registerPolymerItem(ItemLike item, PolymerItem polymerItem) {
        PolymerItem.registerOverlay(item.asItem(), polymerItem);
    }
    
    @Override
    public String getNamespace() {
        return MOD_ID;
    }
}

public class XXXPolymerBlock {
    public static final BlockState OVERLAY_0 = PolymerBlockResourceUtils.requestEmpty(BlockModelType.ACTIVE_PRESSURE_PLATE);
    public static final BlockState OVERLAY_1 = PolymerBlockResourceUtils.requestEmpty(BlockModelType.KELP_BLOCK);
    public static final BaseFactoryBlock INSTANCE = new BaseFactoryBlock(OVERLAY_0, false, BlockStateModel::midRange) {
        @Override
        public BlockState getPolymerBlockState(BlockState state, PacketContext context) {
            if (state.hasProperty(BlockStateProperties.WATERLOGGED) && state.getValue(BlockStateProperties.WATERLOGGED)) {
                return OVERLAY_1;
            }
            return super.getPolymerBlockState(state, context);
        }
    };
}

PolyMc-Extra Mod Download Links

Filter by

For Minecraft 26.1.2, 26.1.1, 26.1

For Minecraft 1.21.11

For Minecraft 1.21.10, 1.21.9

For Minecraft 1.21.8, 1.21.7, 1.21.6

Click to rate this post!
[Total: 0 Average: 0]
QUICK MINECRAFT SURVEY · ONE TAP
Mods & Modpacks

Which item and recipe viewer mod do you prefer to have in your game?

28 responses · See the full results →