Pixel Dream StudiosWiki

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:

The examples use <namespace>. Adjust namespaces as needed.

How it behaves in-game

  • RPM gate: The drill does nothing below min_rpm for the active tier.
  • Speed multiplier: At min_rpm you get 1× speed; it scales linearly up to 2× at max_rpm (clamped).
  • Stress draw: At min_rpm the drill draws stress_at_minRPM × suScale SU. 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.0 means a tier value of 32.0 renders/consumes 32,000 SU at min_rpm.

Where to go next

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 call TierDefs.register(new TierDef(...)) during common setup, but prefer datapacks so pack makers can extend your mod.
  • The renderer reads head_partial directly; 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.

On this page