Stash2Pump

About
Allows the user to place water pump where a stash can be placed.
If this is too limiting there is a companion plugin available that allows
a wooden box to place a stash (Box2Stash)
commands
mpump gives resource requirement to user for this location
Features
- Been used on public server since 2020, code is stable & fast.
- Calculates distance to water depending on location & varied resource req.
- Can use only static resources if needed.
- can randomize fresh/salt water, based on %
- Uses "Stash" resource to place pump, where pump cannot normally be placed.
- Can be extended to place in caves other areas, by usage of Box2Stash plugin.
- self optimize location files based on pumps being removed.
Permission
HcWaterPumpAnywhere.usempumpcmd : user can use command
HcWaterPumpAnywhere.makepump : Plugin enabled for user
Configuration
Items needed to make the pump, upto 6 items (stash limit)
Quantity is dependent on any stacker/rust limits
Calculation
DistanceCovered: distance covered by that many items per M
QuantityPerDistance: is the number of items to cover above Measure distance.
Therefore if you set :
QuantityPerDistance=2
DistanceCovered= 1
Waterdistance/DistanceCovered*QuantityPerDistance
the water is 2M under the map, that means the user is asked for (2/1)*2
or 4 of that item.
//Resourcesfixed = true : Plugin will always assume water is 1m under map
//Resourcesfixed = false : Plugin will calculate based on water pos
//waterPure = true : Produces pure water, but can be overridden by "waterRandom = true" & a %
//waterPure = false : Produces ONLY salt water from land based pumps not near rivers, ignores waterRandom
//waterRandom = false : The pump will only produce water based on "waterPure" flag
//waterRandom = true : If the waterPure=true, there is a chance to produce salt water
//waterRandom% = 0.00-1.00 : Chance waterRandom produces salt water (45%=0.45)
//adminAlwaysEnabled = true : Plugin always enabled for any >level 1 user
//adminAlwaysEnabled = false : Treats admin as normal player, usage must be set via group/user
{
"pmitemContainer": {
"Items": [
{
"ItemShortName": "waterpump",
"QuantityPerDistance": 1,
"DistanceCovered-M": 9999
},
{
"ItemShortName": "metalpipe",
"QuantityPerDistance": 1,
"DistanceCovered-M": 3
},
{
"ItemShortName": "pickaxe",
"QuantityPerDistance": 1,
"DistanceCovered-M": 4
}
]
},
"AlwaysEnabled4Admin": true,
"Resourcesfixed": false,
"waterPure": true,
"waterRandom": false,
"optimizePumpTags": false,
"waterRandom%": 0.5,
"Version": {
"Major": 1,
"Minor": 6,
"Patch": 8
}
}
Command your Rust server. Live WebRCON console, performance and player monitoring, quick actions, groups and permissions, and plugin management.
Visit site ↗