Data Attributes

Data Attributes

Mod

Overhauls the entity attribute system and exposes it with datapacks.

Client and server LibraryUtility

87.2k downloads
26 followers
Created2 years ago
Updateda year ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Changelog

*Changed how datapack is synced S2C:

Before, sent raw NBT through network. Now:

  1. converts NBT to SNBT;
  2. uses Java's Deflater to compress the SNBT;
  3. converts the compressed SNBT to byte array;
  4. sends the byte array over network;
  5. Reverses this using java's Inflater on the client.

This reduces the raw NBT network packet from aprox. 4KB to ~0.9KB. This was done in attempt to fix packet size issue with Velocity plugin, but also in general the player connection packet has the potential to get really massive really quickly depending on the datapack.

-Removed version checking between client and server. This was done in an attempt to make this compatible with Velocity plugin, which tends to get upset if we use regular Minecraft's connection packets.

*Changed MutableIntFlag to be implemented further up in the hierarchy (MutableWorldProperties). Added relevant casting checks. This is an attempt to fix bugs caused when other mods want to make 'dummy world properties' that don't respect the world properties hierarchy nor the client/server divide.

+Incremented version.

Files

dataattributes-1.4.1.jar(110.54 KiB) Primary Download

External resources



Project members

clevernucleus

Owner


Technical information

License
MIT
Client side
required
Server side
required
Project ID