Skip to content

Comments

An all out rework on the 1.20.1 Forge branch.#15

Open
Nacolla wants to merge 10 commits intoFloofHips:mainfrom
Nacolla:1.20.1-fix
Open

An all out rework on the 1.20.1 Forge branch.#15
Nacolla wants to merge 10 commits intoFloofHips:mainfrom
Nacolla:1.20.1-fix

Conversation

@Nacolla
Copy link

@Nacolla Nacolla commented Feb 5, 2026

This Pull Request is focused on:

Fixing bugs such as:

  • The detachment of widgets(still unsure, yet it may reduce the number of newer incidents)
  • Tamed Hullback sinking whenever theres no players above it, bringing the widgets with it.

Adding compatibility to Leawinds Third Person Mod.

- Fixed speed lag/glitch when controlled by helm by correctly applying speed attributes in travel()
- Fixed compilation error due to missing platformsStable field
- Translated Portuguese comments to English for consistent documentation
…Forge)

Ports the shader compatibility system from 1.21.1 to 1.20.1 Forge:

- ShaderCompatLib: Detects Oculus via net.minecraftforge.fml.ModList
  to choose the appropriate render path at runtime
- HullbackArmorTextureManager: Pre-composites damaged armor texture by
  replicating vanilla's dragonExplosionAlpha alpha-test logic in software.
  Compares mask alpha against (progress * 255) threshold per pixel.
  Uses intelligent caching keyed by entity ID, armor item, and progress.
- HullbackRenderer: Routes to single-pass entityCutoutNoCull when Oculus
  is active, falling back to vanilla dual-pass when it is not.

Uses entityCutoutNoCull to preserve interior face visibility through
damage holes, matching vanilla's visual behavior exactly.

API adaptations for Forge 1.20.1:
- Uses new ResourceLocation() instead of fromNamespaceAndPath()
- Uses net.minecraftforge.fml.ModList instead of net.neoforged
- Checks only Oculus (Iris is Fabric-only, not relevant on Forge)
@Nacolla Nacolla changed the title 1.20.1 minor bug fixes + 3rd person mod compat An all out rework on the 1.20.1 Forge branch. Feb 20, 2026
- Add server-side config with hullbackSpawnWeight, hullbackDespawnTimeTicks, hullbackDespawnTimeMultiplier, and hullbackDespawnGraceRadius
- Register SERVER_SPEC in ModLoadingContext to generate server-side config file
- Add ConfigurableSpawnModifier and WBBiomeModifierRegistry for dynamic spawn weight
- Add hullback_spawn.json biome modifier for ocean spawn registration
- Implement despawn timer logic in tick() with grace zone support
- Despawn timer pauses when a player is within the configured grace radius (default 16 blocks)
- Setting grace radius to 0 disables the grace zone entirely
- Wild Hullbacks (not tamed, named, or persistent) despawn after configurable time
- Fixed biome modifier codec() to return registered RegistryObject for proper Forge recognition
- Removed diagnostic log statements from ConfigurableSpawnModifier
- Reduced hasNearbyHullbacks detection area from 32/16/32 to 16/8/16 to allow more concurrent spawns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant