MiX Quarry 0.2.6

What it does
Lets players claim a monument quarry, move low grade fuel into it from their inventory and switch
its engine on or off, by looking at it and typing a command. While a claim is required, only the
claimant or staff can fuel or switch a monument quarry, and the quarry's own engine switch is
blocked for everyone else too. Player-placed quarries keep their normal owner rules.
A second command loads diesel barrels from the player's inventory into the nearest giant excavator
engine (within 40 m). The player then throws the switch on the excavator arm as usual.
The plugin finds the quarry under the crosshair (within LookDistance), or the nearest one within
5 m. It needs the monument quarries (sulfur, stone, HQM) or the giant excavator on the map; on a
map without those monuments it has nothing to manage.

Install
Drop plugins/MixQuarry.cs into carbon/plugins (Carbon) or oxide/plugins (Oxide).
No data files ship. Claims are saved to data/MixQuarry/claims.json.

Commands
Chat commands need mixquarry.use (given to every player by default). /mixquarry is an alias of
/quarry and /mixexcavator an alias of /excavator.
/quarry or /quarry status  Type, engine state, fuel and owner of the quarry you look at.
/quarry claim              Claim the monument quarry you look at.
/quarry unclaim            Release your claim.
/quarry on (or start)      Start the engine. A monument quarry must be yours.
/quarry off (or stop)      Stop the engine.
/quarry fuel [n]           Move n low grade fuel from your inventory into it (default 50, max 500).
/quarry list               Your claims with their coordinates.
/quarry ui | close         Open or close a small status panel for the quarry you look at.
/excavator                 Distance to the nearest excavator engine.
/excavator fuel (or start) Load up to DieselPerStart diesel barrels into that engine.
mixquarry.ui [action]      Console form used by the panel buttons: no argument opens the panel,
                           close closes it, any other argument runs /quarry <argument> with the
                           same checks. In game only.

Permissions
mixquarry.use    Claim, fuel and switch quarries; fuel the excavator. Given to the default group
                 every time the plugin loads.
mixquarry.admin  Fuel and switch any quarry and take over any claim, whoever owns it.
Server admins are treated as mixquarry.admin.

Config highlights
File: carbon/configs/MixQuarry.json
RequireClaimForStatic  true           Monument quarries must be claimed before fuelling or
                                      switching. Set false to let everyone share them.
LookDistance           10             How far, in metres, the plugin looks for the quarry.
DieselPerStart         50             Most diesel barrels loaded per /excavator fuel.
FuelShortname          lowgradefuel   Item moved by /quarry fuel.
ChatPrefix             <color=#eab308>Quarry</color>   Prefix on chat replies.

Tested
Tested alone on Carbon 2.0.259.0 with Rust build 25454815 on 2026-09-28; runs without the rest of the MiX Server Pack.

Feedback
Questions, bugs and ideas: MixMods Discord, discord.gg/MZCdmvFrQ, message B1.

Licence
Free to run and change on your own servers. See LICENCE.txt.
