Create Mining Laser
Add data-driven laser tiers, recipes, models, and textures to the Create Mining Laser.
This mod is data-driven: tiers, recipes, models, and textures can be added or replaced from a resource/data pack (or another mod).
This guide shows:
- how to add a new Tier (data file),
- how to add recipes for that tier (data file),
- where to put the model & textures for the laser head,
- and what each field means.
The examples use
<namespace>. Adjust namespaces as needed.
How it behaves in-game
- RPM gate: The drill does nothing below
min_rpmfor the active tier. - Speed multiplier: At
min_rpmyou get 1× speed; it scales linearly up to 2× atmax_rpm(clamped). - Stress draw: At
min_rpmthe drill drawsstress_at_minRPM × suScaleSU. The mod reports impact per RPM to Create so the network sees the correct load. - JEI: Displays the tier's core item, duration, stress (with config scale), and filters as friendly text.
Config (server config)
create_mininglaser-common.toml:
suScale— global multiplier applied to all tiers'stress_at_minRPM. Example:1000.0means a tier value of32.0renders/consumes 32,000 SU atmin_rpm.
Where to go next
Adding a tier
Where a tier's files go, every field in a tier file, and the laser head's model and texture.
Tier recipes
The drill core recipes a tier mines with: every field, and where the files go.
Complete example
A whole new tier, t10: its tier file, head model and recipe.
Troubleshooting
Fixes for recipes that don't show, tiers that don't start and heads that render wrong.
Developer notes
- Tiers are looked up at runtime from the datapack registry (
TierDefs). If you really need to hard-register tiers in code, you can still callTierDefs.register(new TierDef(...))during common setup, but prefer datapacks so pack makers can extend your mod. - The renderer reads
head_partialdirectly; no extra Java registration is required.
License & contributions
Feel free to open issues/PRs with new example tiers and recipes. Include your datapack folder so others can test quickly.
If anything in this guide doesn't match your build (field names or paths), check your log on /reload - the mod will print where it expects tier and recipe files, and any JSON parse errors.
