P0-BUG-001 — Ordre IDs joints Elbow/Hand/Tool ≠ EF
TiedUpArmatures.buildBiped() assignait Arm_R=11, Elbow_R=12, Hand_R=13,
Tool_R=14 (idem gauche 16/17/18/19) alors que VanillaModelTransformer.RIGHT_ARM
encode upperJoint=11, lowerJoint=12, middleJoint=14 — donc Arm_R=11, Hand_R=12,
Elbow_R=14. Résultat : lowerJoint=17 (SimpleTransformer qui attache les
vertices à Hand) pointait en fait vers Elbow_L → bras tordus au rendu.
Fix : réassigner les IDs dans buildBiped() pour matcher le layout EF
(Arm_R=11, Hand_R=12, Tool_R=13, Elbow_R=14 ; symétrique 16-19).
VanillaModelTransformer non touché (source de vérité EF).
P0-BUG-002 — Singleton BIPED non thread-safe
if (BIPED_INSTANCE == null) BIPED_INSTANCE = buildBiped() est un double-init
race. En SP intégré (client + server threads sur la même JVM), deux threads
peuvent entrer simultanément dans le if null et créer deux HumanoidArmature
distincts — pose matrices incohérentes selon les call sites.
Fix : Holder idiome (static inner class). Le class-init lock JVM garantit
(JLS §12.4.1) qu'une seule init, visible à tous les threads, sans
synchronized ni volatile. Zero overhead après init.
P1 — Nouveau TiedUpArmaturesTest (4 tests)
- bipedHas20Joints : BIPED.get().getJointNumber() == 20
- searchBipedJointByNameReturnsNonNull : vérifie les 20 noms EF
- jointIdsMatchEfLayout : verrou P0-BUG-001 (id=12→Hand_R, id=14→Elbow_R,
etc.) — aurait attrapé le bug en review initiale
- bipedSingleton : BIPED.get() == BIPED.get() (verrou P0-BUG-002)
P2 backlog tracé dans docs/plans/rig/PHASE0_DEGRADATIONS.md :
biped collapsed visuellement jusqu'à Phase 2.7, PlayerPatch.yBodyRot sans
lerp, ridingEntity non géré, isFirstPersonHidden nommage ambigu,
ServerPlayerPatch hérite méthodes client-only sans @OnlyIn.
Tests : 15 GREEN (11 bridge pré-existants + 4 nouveaux biped).
Compile clean.
TiedUp! - Minecraft 1.20.1 Forge Mod
Community remake of the TiedUp! mod for Minecraft 1.20.1 (Forge). Adds restraint and roleplay mechanics to the game.
Original mod by Yuti & Marl Velius (1.12.2). This is an independent remake, not affiliated with the original developers.
Features
- Restraint items (binds, gags, blindfolds, collars, straps, and more)
- NPC entities with AI and personality-driven dialogue (Kidnapper, Damsel, Guard, Trader, Maid, Master)
- Kidnapper camp world generation
- Captivity and prison mechanics
- Player animation system with 3D item rendering
- Multiplayer synchronization
- Mod compatibility (Minecraft Comes Alive, Wildfire's Female Gender Mod)
- In-game guide book (Patchouli)
Requirements
- Java 17
- Minecraft 1.20.1
- Forge 47.4.10+
- PlayerAnimator 1.0.2-rc1+
Building
# First time setup
make setup
# Build the mod
make build
# Clean and rebuild
make rebuild
# See all available commands
make help
Or directly with Gradle:
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
./gradlew build
The built JAR will be in build/libs/.
Development
# Run Minecraft client
make run
# Run dedicated server
make server
# Multiplayer testing (server + 2 clients)
make mptest
# Generate IDE configurations
make idea # IntelliJ IDEA
make eclipse # Eclipse
Project Structure
src/main/java/com/tiedup/remake/
├── blocks/ # Custom blocks and block entities
├── cells/ # Captive cell management
├── client/ # Rendering, GUI, animations
├── commands/ # /tiedup command
├── compat/ # Mod compatibility (MCA, Wildfire)
├── core/ # Main mod class, config, sounds
├── dialogue/ # NPC conversation system
├── entities/ # Custom NPCs and AI
├── events/ # Event handlers
├── items/ # All mod items
├── mixin/ # Minecraft bytecode modifications
├── network/ # Multiplayer packet system
├── personality/ # NPC personality system
├── state/ # Player state tracking
├── v2/ # Next-gen items and blocks
└── worldgen/ # Structure generation
Dependencies
Some dependencies are included as local JARs in libs/ because they are not available on Maven Central:
| Library | Version | Usage |
|---|---|---|
| PlayerAnimator | 1.0.2-rc1+1.20 | Player pose animations |
| bendy-lib | 4.0.0 | Model part bending |
| Architectury | 9.2.14 | Required by MCA |
| Minecraft Comes Alive | 7.6.13 | Optional compatibility |
| Wildfire Gender Mod | 3.1 | Optional compatibility |
License
GPL-3.0 with Commons Clause - see LICENSE for details.
TL;DR: Free to use, modify, and distribute. Cannot be sold or put behind a paywall. The 3D models are the property of their creators; if their names are listed, please ask them for permission otherwise me.
Status
This mod is under heavy rework. Things will break, APIs will change, features will come and go. If you want to build and use it as-is, that's on you.
Contributing
Contributions are welcome. Rules:
- Pull requests only - no direct pushes
- Clear commit messages - describe what and why, not how
- Test your changes before submitting - at minimum, make sure it compiles and runs
- Bug fixes, new features, improvements - all welcome
- Areas where help is especially needed: textures, 3D models, multiplayer testing