GithubHelp home page GithubHelp logo

bluezeeking / factions-money Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 232 KB

Check claims for any items of value and give extra power

License: MIT License

Java 100.00%
fabric factions minecraft

factions-money's Introduction

Factions Money Mod

About

This mod gives a purpose to excess valuables in your minecraft worlds. By using the preexisting Factions Mod this lightweight mod can give a faction more power based on the number of resources stored in their claims.

How does it work?

When the server starts this mod checks every claim and every chest or barrel in that claim for valuables. Each type of item is assigned a value, for example, diamonds are worth five. Then when everything is counted it has its "money" value. It does one final calculation to turn that money value into a power value that is then added.

Configuration

items

This is a list of item ids (e.g. minecraft:diamond) and their corresponding money value

Example:

{
    "minecraft:diamond": 5,
    "minecraft:emerald": 3
}

multiplier

This is how much the money is multiplied by before it is added to the power

Default: 0.01

useMax

If this is set to true, the max power will be changed. If not the current power will be changed

Default: false

ticksToReload

The number of ticks before it recounts each faction's money

Default: 4800 (4mins)

Default Config

{
  "items": {
    "minecraft:diamond_block": 45,
    "minecraft:gold": 3,
    "minecraft:emerald": 3,
    "minecraft:emerald_block": 27,
    "minecraft:iron_block": 18,
    "minecraft:diamond": 5,
    "minecraft:iron": 2,
    "minecraft:gold_block": 27
  },
  "multiplier": 0.01,
  "useMax": false,
  "ticksToReload": 4800
}

factions-money's People

Contributors

bluezeeking avatar

Watchers

 avatar  avatar

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.