PolyMc-Extra Mod (26.1.2, 1.21.11) – Let Vanilla Players Join Modded Servers
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.
![]()
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-extraentry point throughPolyMcExtraEntrypoint.classfor complex mods. - Verifies item component integrity during startup to prevent mismatched or broken items.
- Registers built-in
ExtraModelTypedefinitions 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, andPolymerItem.registerOverlayfor 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:
- Registers the built-in
ExtraModelTypedefinitions. - Registers special entity mappings.
- Scans and runs all module
polymc-extraentry points usingPolyMcExtraEntrypoint.class. - Reads the config file before all static registry entries freeze, iterates through the registry, and patches each missing item on the server only.
- Verifies item components integrity.
- 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 likeBLOCK_DISPLAY_ENTITYandBLOCK_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:
- Place this mod on your server alongside the mods you want to patch; vanilla players can join with no client mods.
- 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. - Edit
/config/polymc-extra.jsonif any block needs a custom model type, adding IDs toDisabledOpaqueBlocksor mapping patterns inCustomBlockModelTypeMappingstoBLOCK_DISPLAY_ENTITYorBLOCK_DISPLAY_ENTITY_NO_COLLISION.
Building a Custom Patch Module:
- Create a
libsfolder inside your module project directory. - Download the mod JAR file and put it inside that
libsfolder. - Add
flatDir { dirs 'libs' }along with the Polymer packages,resource-locator-api,factorytools,sgui,server-translations-api, your locallibsJAR viamodImplementation files(...), andpolydexviamodCompileOnlyin yourbuild.gradlefile. - Create a registry class with
PolyMcExtraEntrypoint, add your mod namespace toPolyMcExtraPacks.NAMESPACESinsideonInitialize(), and register overlays viaPolymerBlock.registerOverlay,BlockWithElementHolder.registerOverlay, andPolymerItem.registerOverlay. - Schedule
BlockStateModelManager.addBlock(key, block)insidePolyMcExtra.LATE_INITafter checkingPolymerBlockHelper.testJsonExist(block), and build custom block state classes withBaseFactoryBlockandPolymerBlockResourceUtils.requestEmptyto handle properties likeBlockStateProperties.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);
}
};
}
How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Requirements:
PolyMc-Extra Mod Download Links
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
Which item and recipe viewer mod do you prefer to have in your game?
28 responses · See the full results →
0


















This post has no comments yet. Be the first — your comment will appear here.