BowStateDetector
Detects bow and crossbow draw state model groups and generates the appropriate conditional item definition JSON for Minecraft's resource pack system.
Naming convention:
- {name}_idle — in hand, not drawing
- {name}_draw_start — just started pulling
- {name}_draw_half — halfway drawn
- {name}_draw_full — fully drawn
- {name}_charged — loaded crossbow (crossbow only)
Functions
Link copied to clipboard
Scans a set of model IDs that have display JSONs and detects bow/crossbow groups.
Link copied to clipboard
Generates the conditional item definition JSON for a bow state group.
Link copied to clipboard
Generates the conditional item definition JSON for a crossbow state group.
Link copied to clipboard
Checks if a model ID has a bow/crossbow draw state suffix.
Link copied to clipboard
Strips the draw state suffix from a model ID to get the base name.