Skip to content

Configs

Patrick edited this page Apr 15, 2020 · 2 revisions

language-code

Default en-US.yml and is used for getting/translating messages to show to the player. All messages are parsed by TabuuCore's ComponentBuilder.

Default en-US.yml:

# All text is parsed by https://github.com/Tabuu/TabuuCore/wiki/ComponentBuilder to allow for magic
COMMAND_VIEW_NOT_FOUND: "&4No horse found within range!&r"
COMMAND_VIEW_HEADER: "&2@===HorseStats===@&r"
COMMAND_VIEW_NAME: "&aName: {NAME}&r"
COMMAND_VIEW_HEALTH: "&cHealth: [&4{HEALTH}/{MAXHEALTH}](&c{HEARTS}\u2764/{MAXHEARTS}\u2764)&r"
COMMAND_VIEW_JUMP: "&eJumpstrength: {JUMPNUMBER} = {JUMPBLOCKS} blocks&r"
COMMAND_VIEW_SPEED: "&aMovement Speed: {SPEEDNUMBER} = {SPEEDBLOCKS} blocks/second&r"
COMMAND_VIEW_COLOR: "&cColor: {COLOR}&r"
COMMAND_VIEW_MARK: "&eMarkings: {MARK}&r"
COMMAND_VIEW_STRENGTH: "&cStrength: {STRENGTH} = {STRENGTHSLOTS} inventory slots&r"

COMMAND_EDIT_NOT_FOUND: "&4No horse found within range!&r"
COMMAND_EDIT_NO_LLAMA: "&4No llama found within range!&r"
COMMAND_EDIT_NO_COLOR: "&4This type of horse doesn't have any colors!&r"
COMMAND_EDIT_NO_MARK: "&4This type horse doesn't have any markings!&r"
COMMAND_EDIT_BLOCKS_WARN: "&cNote: blocks are only accurate up to and including 5 blocks, beyond that it may be a bit less than the amount of blocks specified.&r"
COMMAND_EDIT_SUCCESS: "&e&lSuccessfully edited the horse!&r"

COMMAND_RELOAD_SUCCESS: "&e&lSuccessfully reloaded the horsestats configs!&r"

Config

Contains all settings for the plugin

Default config.yml:

# Config version. Don't change this
version: 1

gameplay:
   # The maximum range a player can be from a horse to edit/view it
   range: 10

settings:
   language-file: "en-US"

data:
   # formula where x is movementspeed value
   # x * speed-conversion = speed (blocks/second)
   speed-conversion: 42.157787584
   # formula where x is horse's jumpstrength
   # height = ax^3 + bx^2 + cx + d
   # default values from https://minecraft.gamepedia.com/Horse#Jump_strength
   jump:
      a: -0.1817584952
      b: 3.689713992
      c: 2.128599134
      d: -0.343930367

Clone this wiki locally