Skip to content

Releases: falkreon/Scarves

1.4.6+1.21.1

24 Apr 15:11
3b0270e
Compare
Choose a tag to compare
  • Slight optimization to do less work and create fewer objects inside of each frame.

1.4.5

06 Apr 21:03
61889d5
Compare
Choose a tag to compare

No new code in this release, just a new included version of StaticData to fix a bug with staticdata packs in Windows.

1.4.4

24 Mar 05:33
1513fa4
Compare
Choose a tag to compare

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!

1.4.3

16 Mar 19:48
aacd900
Compare
Choose a tag to compare

This release is a patch to guard against malformed JREs that are shipped without the required RandomGenerators.

1.4.2

16 Mar 16:05
e7b1db1
Compare
Choose a tag to compare

This release fixes a component registration bug where Scarves would crash if Polymer was present.

1.4.1 - Bugfix update

15 Mar 08:56
4a17da2
Compare
Choose a tag to compare

This is a minor update

  • Fixes a fatal error when trying to equip the Scarf Stapler as equipment.

1.4.0 - Play With Friends

13 Mar 19:05
9caf0a3
Compare
Choose a tag to compare

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!

Screenshot_20250313_122810

1.3.3+1.20.4

04 Jan 13:10
4551f5e
Compare
Choose a tag to compare
  • Fixed static data for modded blocks not deferring until the registry event

1.3.2+1.20.4

03 Jan 05:11
37de87e
Compare
Choose a tag to compare
  • 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

1.3.0+1.20

27 Jul 22:42
ed01351
Compare
Choose a tag to compare

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