Git Product home page Git Product logo

hypnos's Introduction

Hypnos

Minecraft mod using fabric api

Config

Values

  • playerPercentage is the percentage of player that need to sleep
  • notEnoughPlayerMessage is the message displayed when a player enter his bed but not enough players are sleeping
  • nightSkipMessage is the message used when skipping night
  • enableWakeUp enable or disable broadcasting of wakeUpMessage
  • wakeUpMessage is the message displayed when a player leaves his bed
  • ignoreSleepDuringDay enabling it will ignore when player enter a bed during day (true per default)

Message arguments

In messages, you can use different variables

  • {player}: player entering his bed
  • {sleeping}: amount of players sleeping
  • {required}: number of required player sleeping to skip night

Each message can have only specific arguments

  • notEnoughPlayerMessage: {player}, {sleeping}, {required}
  • nightSkipMessage: {sleeping}, {required}
  • wakeUpMessage: {player}, {sleeping}, {required}

You can also use minecraft color tags as seen here

Default config

{
  "playerPercentage": 50,
  "notEnoughPlayerMessage": "§9{player} entered bed, not enought to skip night [{sleeping}/{required}]§r",
  "nightSkipMessage": "§9Enough players are sleeping, skipping night§r",
  "wakeUpMessage": "§9{player} leaved bed§r",
  "enableWakeUp": false,
  "ignoreSleepDuringDay": true
}

hypnos's People

Contributors

codelaxable avatar

Watchers

 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.