No new code in this release, just a new included version of StaticData to fix a bug with staticdata packs in Windows.
Data Driving... Now With Sodium!
Bugfixes
The main reason for this release is to fix a pretty bad bug where scarves fail to position correctly when Sodium is present. A lot of math is "factored out" by Sodium, resulting in efficient reuse of pre-computed values, but this prevents me from grabbing some data directly off the models. If Sodium is detected, the missing data is estimated. It's not perfect, but it's actually pretty darn close considering what is lost.
Known bugs in this system: Elytra flight, especially in third person, has poor scarf adhesion. This has always been a problem case because the player doesn't lean from the same pivot that they do when swimming or crouching.
Compatibility Updates
This release also cuts two mixins by moving some information from code to data. Bees and foxes are implemented internally using the same system mods can use to add their own support for scarves.
To add support, you need to do two things:
- Add or set aside whatever slot that scarves should sit in. By convention, most entities use the "head/left_scarf" trinket slot.
- Include static data in the
scarves/slot_configs
path. (as in,src/main/resources/staticdata/scarves/slot_configs/whatever.json
). You don't need to depend on staticdata, just have the json in your mod jar. Check the Scarves source for examples, or ask me for details!
Known bugs in this system: Tameable entities that prioritize sitting over item use, such as cats and wolves, will prevent the scarf item from pinning to them automatically. Additionally, highly animated entities may visually "bug out" or flicker if scarves are pinned to a modelpart like "body" instead of "". Minecraft's animations appear to rely on stateful behavior in the entity model. Pin to the entity root if possible, it's faster!
This release is a patch to guard against malformed JREs that are shipped without the required RandomGenerators.
This release fixes a component registration bug where Scarves would crash if Polymer was present.
This is a minor update
- Fixes a fatal error when trying to equip the Scarf Stapler as equipment.
In honor of the upcoming "Play With Friends" Minecraft update, I thought I'd make my own.
In this version, it's easier than ever to define new Fabric Squares, provide or process pre-rolled scarf design layouts, and even define new Scarf-Haver entities. Scarves have been split into two slots with one individual tail each, so you can pair up two pride flags more easily. A lot of work went in under the hood to expand scarf eligibility to new friends.
- Update to 1.21.1
- Componentize ScarfDesign and FabricSquare, so any item can count as a fabric square or a scarf design with no registration.
- Staticdata now sneaks default components onto the targeted items
- Moved scarf slot from body to head, and split into left and right slot. Each scarf has only one tail now.
- Scarf Stapler and Scarf Serger interfaces rearranged to acommodate all these changes
- The way scarves are pinned to entities has totally changed.
- Bee scarves. Fox scarves. Rightclick a friend with a scarf to place it in their scarf slot. If they're already wearing a scarf, it'll swap them. Support for more animals is coming!
Fixed static data loading for modded blocks and items. 1.3.2 required them to exist before Scarves' modInitializer. This is no longer the case.
This version is a recommended upgrade for anyone who wants to customize the staple-able items.
Known issues
- Something broke in 1.20.4 with stapling scarves to each other. I'm still investigating this, and will release a specific fix version for that too.
- Updated to 1.20.4
- Scarves now show their colors in the GUI
- Scarves now reads static data to import new fabric squares
- All builtins now come from static data
This release is a significant improvement on 1.2.x.
- Fixed a bug causing scarves to jitter in tick-deprived environments such as when performance-enhancing mods are installed.
- Marked several more blocks as eligible to be fabric squares
- Finished implementing the scarf serger
Updates the mod to 1.20. Features are identical to the 1.2 version shown at Modfest.
- Doubled the gravity on scarves. Then doubled it again.
- Added the ability to staple scarves to the ends of other scarves
- Cap the maximum length for scarf stapling, for modfest
- Added slot icons to the Scarf Stapler
- Added a scarf trinket slot to the Scarf Stapler so that you can work on the scarf you're wearing
- Chopped down creative mode scarves to short one-sided scarves for ease of stapling
- Attach scarves better during elytra flight and swimming
- Handle vertical scarves better; slope squares so they don't lose so much volume as they tilt
- Respond to wind if wind is provided
- Smooth all tick-based movement using frame deltaTime and lerps