Sponge API 7.3.x Plugin that allows players to pay for energy, or earn money selling energy.
This plugin is in a rough proof of concept state.
Currently supported energy backends:
- Forge
- Mekanism
Current implementation borrows from PowerMoney's MoneyCalculator.
- Sink:
block to which energy is added
- Source:
block from which energy is removed
- Node:
block that is either a Sink or Source
To register a Sink, punch an energy storage block with a piece of glowstone dust.
To register a Source, punch an energy storage block with a piece of redstone.
To remove a Node, punch it with a block of bedrock.
Those items are configurable in config/powersink/powersink.conf
:
activationItems {
remove="minecraft:bedrock"
sink="minecraft:glowstone_dust"
source="minecraft:redstone"
}
/powersink
or/ps
: lists sub commands/ps list <player>
: lists energy nodes for<player>
or self- if used with
minecraft.commands.tp
, a TextAction will be generated to allow teleportation to nodes - if used with
powersink.remove.[self|other]
, a TextAction will be generated to allow removal of nodes from PowerSink
- if used with
powersink {
currency=dollar #change this to match your economy's currency
tickInterval=2 #how often should PowerSink interact with Nodes?
}
powersink.setup
register Sinks and Sourcespowersink.setup.sink
register Sinkspowersink.setup.source
register Sourcespowersink.list
list Nodes for self or otherspowersink.list.self
list Nodes for selfpowersink.list.other
list Nodes for otherspowersink.remove
remove Nodes for self or otherspowersink.remove.self
remove Nodes for selfpowersink.remove.other
remove Nodes for others
In config/powersink/powersink.conf
, there is a block that looks like this:
# Group limits on sources and sinks.
limits=[
{
group=admin
sink=1000
source=1000
},
{
group=player
sink=4
source=4
}
]
You can define limit groups here, and assign that group to players. Suppose you create a group named vip
, to give that limit to players, assign the powersink.limit.vip
permission.
Limit groups are evaluated in the order they are defined within the limit
list in the config. Be conscious of this when assigning multiple limit groups to players.