Comments (2)
this is exactly something in the making at the moment, it requires a total rewrite of the plugin, so it'll be in 2.0, and i expect to be done with it in about 6 months
from coins.
it's going to be something like this, or at least, that's what i have written down so far for my idea:
# Define any kind of coin.
# Check out: https://github.com/JustEli/Coins/wiki/defining-coins
coins:
# Name of this configured coin, later used in other parts of the config.
BLOCK:
item: GOLD_BLOCK # material of this coin
worth: [10.0, 15.0] # the range to determine random worth
glow: true # will give an enchanted effect
chance: 0.1 # default chance, overridable in 'drops'
INGOT:
item: GOLD_INGOT
worth: [5.0, 9.0]
chance: 0.3
# Tell the plugin when and what coins to drop.
# Check out: https://github.com/JustEli/Coins/wiki/defining-drops
drops:
# The name/identifier of this configured drop. Can be anything.
playerKill:
# Whether this should be enabled or not. Ignored on startup if false.
enabled: false
# The listeners/events to listen to for this drop.
# For this drop, it will listen to punch kills and projectile kills.
listeners: [KILL_ENTITY, KILL_ENTITY_PROJECTILE]
# Select what should be allowed to drop coins when event is triggered.
selectors:
entities: [PLAYER] # players will drop coins if killed by another player
preventAlts: true # but prevent if player was killed by an alt
hostileKill:
enabled: true
listeners: [KILL_ENTITY, KILL_ENTITY_PROJECTILE]
selectors:
entities: [HOSTILE] # all hostile mobs will drop a coin with this event
spawners: false # but not if they're from spawners
slimeSplit: false # and exclude slimes that were spawned by split
passiveKill:
enabled: false
listeners: [KILL_ENTITY, KILL_ENTITY_PROJECTILE]
selectors:
entities: [PASSIVE]
spawners: false
chance:
INGOT: 0.2 # override the default drop chance for INGOT
NUGGET: 0.4 # and also do so for NUGGET
entityDeath:
enabled: false
# This listener is for any death, also when not killed by a player.
listeners: [ENTITY_DEATH]
selectors:
entities: [HOSTILE, PASSIVE]
spawners: false
slimeSplit: false
mineValuableOre:
enabled: false
listeners: [BREAK_BLOCK]
selectors:
materials: # materials in this event that are selected
- EMERALD_ORE
- DIAMOND_ORE
- LAPIS_LAZULI_ORE
chance:
# Override the default chance for the coin configured as 'BLOCK'.
BLOCK: 0.2
from coins.
Related Issues (20)
- add support for Tuinity
- disable/enable plugin by command HOT 1
- loseOnDeath: true not working HOT 1
- setting up coins for gemseconomy HOT 1
- Players are able to create their coin using rename command and recolor command and abuse the system HOT 1
- Support RGB colors on pickup HOT 1
- Placing a sunflower when a coin is used on grass/dirt HOT 1
- Could not pass event EntityDeathEvent HOT 1
- Huge amounts of lag when using custom heads HOT 1
- Ability to set "minimum" withdraw amount. HOT 3
- I simply LOVE this plugin and I have a few ideas for you.. HOT 1
- Update Treasury Integration
- Coins not works with MythicMobs HOT 2
- Booster System Suggestion
- Translatation of this message HOT 1
- Coin 1.13.1 bugged on 1.20.1
- Treasury 2.0 API Support HOT 2
- Coins not dropping for mining
- When drop coins Head HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coins.