-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple money drop types and control over which mobs drop them #38
Labels
Comments
ghost
added
the
future
label
Mar 7, 2021
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 |
ghost
closed this as completed
Mar 8, 2021
ghost
reopened this
Mar 9, 2021
ghost
closed this as completed
Mar 9, 2021
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 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: