Home

Awesome

Polymer

It's a library for creating server side content, that work for player's without mods or (required) resource packs!

This library is its alpha stages, however it should be stable. Feel free to suggest changes/improvements!

Usage:

Add it to your dependencies like this:

repositories {
	maven { url 'https://maven.nucleoid.xyz' }
}

dependencies {
	modImplementation include("eu.pb4.polymer:[TAG]").
}

After that, it's as easy as making your items implement VirtualItem, blocks VirtualBlock or VirtualHeadBlock and entities VirtualEntity. Additionally, you need to implement VirtualObject on your enchantments and recipe serializers. It's also recommended registering block entities with PolymerMod.registerVirtualBlockEntity(Identifier).

Limitations

Most command arguments that refer to entity types, items and blocks will be warning that it's are incorrect. However, commands itself should work just fine.

While it's supported, please limit creation of VirtualBlock light sources. Because of how Minecraft handles light updates on server/client, these can be little laggy (as it needs to be send updates every time light changes).

If you are a server owner, you most likely wanted to get PolyMC

Some code in this library is based on PolyMC. So if you are using Polymer, give a star to PolyMC too!