Git Product home page Git Product logo

Comments (2)

JustEli avatar JustEli commented on August 19, 2024

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.

JustEli avatar JustEli commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.