Sueta

Time In A Bottle

2.0.4

Use your playtime to speed things up

·Plugin

BUSY WITH IRL STUFF. WILL UPDATE THE PLUGIN ONCE I HAVE TIME. MAJOR VERSION SUPPORT HAS PRIORITY.

banner.png
If you find any issues please put them in discussions. Reviews are not the place to report problems.

Is waiting around for stuff to grow or smelt too boring for you? Try Time In A Bottle.
The time bottle is an unique item that allows you to accelerate the rate at which certain blocks tick, causing them to speed up.
The bottle passively collects time while in your inventory. When you have collected enough time, you can use it to speed blocks up. To use the stored time, shift right click a block.

There are 5 stages of speed-up, each stage requires 30 seconds.
The speed at which the block ticks doubles with each click.
The effect lasts 30 seconds.

Known error messages / bugs:
"The bottle can be thrown when used on an entity"
I'm aware of this, I'm looking for a fix, but it seems like Spigot isn't cancelling the event correctly. Seems to happen less since 1.16.

"An error occurred (something), skipping something in: something"
This is a debug error message, a lot of block data is being tracked, and sometimes it happens that this data is edited from multiple locations. This simply means that some data is waiting for a retry,

Dependencies:


Recipe:

recipe.PNG

What do the colours and particles mean:
- Purple bubbles, this block is in speed stage 1.
- Blue bubbles, this block is in speed stage 2.
- Yellow bubbles, this block is in speed stage 3.
- Orange bubbles, this block is in speed stage 4.
- White bubbles, this block is in speed stage 5.
- Red smoke, the plugin tries to tick the block, but is not sure what to do with it.

Blocks it works on:
- Furnaces
- Smokers
- Blast Furnaces
- Wheat
- Carrots
- Potatoes
- Beetroots
- Sugar Cane
- Cactus
- Kelp
- Chorus Plants
- Sweet Berry Bushes
- Bamboo
- Vines
- Cocoa Beans
- Nether Wart
- All types of saplings
- Crimson and Warped Fungus
- Weeping and Twisting Vines
- Spawners
- Turtle Eggs
- Campfires
- Brewing Stands
If you think I missed a block or implemented a block incorrectly, please put it in the discussion tab.

Commands:
- /tiab, basic help command.

- /tiab getBottle, gives you the time bottle.
- /tiab giveBottle <player>, gives the specified player the time bottle.
- /tiab addTime <TimeInSeconds>, adds a certain amount of seconds to the bottle you're holding.


Permissions:
- timeinabottle.tiab:
default: op
description: Allows the use of the /tiab command
- timeinabottle.tiab.getbottle:
default: op
description: Allow the use of the /tiab getBottle command
- timeinabottle.tiab.givebottle:
default: op
description: Allow the use of the /tiab giveBottle command
- timeinabottle.tiab.addtime:
default: op
description: Allow the use of the /tiab addtime command
- timeinabottle.timebypass:
default: false
description: Allows to use the bottle if not enough time is stored.

Config.yml

#
# DON'T TOUCH THIS
#
file-version: 5

#
# BOTTLE SETTINGS
#
bottle:
  # Max time in seconds
  max-time: 2147483647
  # Cost of speedup level in seconds
  level-cost: 30
  # Effect duration in seconds
  effect-duration: 30

#
# Add time to AFK players? (Requires EssentialsX or CMI)
#
add-time-to-afk: false

#
# DISABLED BLOCKS
#
# Add blocks to this list to disable them from being tick accelerated.
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
#
disabled-blocks:
  - BEDROCK
  - GRASS_BLOCK
  - DIRT
  - STONE
  - SAND

#
# Set this to true to try to tick unknown blocks
# Note that Disabled Block has priority
#
tick-unknown-blocks: false

#
# RECIPE
# You need to restart the server for this to have effect
#
recipe:
  pattern:
    # Crafting Bench Rows

    # Top Row
    - "GGG"
    # Second Row
    - "DCD"
    # Third Row
    - "LBL"

  materials:
    # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    G: GOLD_INGOT
    D: DIAMOND
    C: CLOCK
    L: LAPIS_LAZULI
    B: GLASS_BOTTLE

#
# SOUNDS
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
#
sounds:
  error: ENTITY_VILLAGER_NO
  level-up: BLOCK_NOTE_BLOCK_HARP
  level-up-under: BLOCK_BREWING_STAND_BREW

Lang.yml:

#
# DON'T TOUCH THIS
#
file-version: 3

#
# Plugin Misc Messages:
#
prefix: "&8[&eTIAB&8]&r"
reload: "{prefix} &aThe plugin has been reloaded."
time-format: "{hours} H | {minutes} M | {seconds} S"
key-missing: "{prefix} &cMessage with key: &o`{key}` &cnot found!"
update:
  - "&7&m====================================================="
  - ""
  - "&f There's an update for &eTime In A Bottle&f!"
  - "&f You're running &e{version}&f, but &e{newVersion}&f has been released!"
  - "&f You can download the latest version from:"
  - "&d {updateUrl}"
  - ""
  - "&7&m====================================================="

#
# Plugin Boot Messages:
#
register-commands: "Registering commands"
register-recipes: "Registering recipes"
register-tasks: "Registering tasks"
register-events: "Registering events"

#
# Plugin Shutdown messages:
#
unregister-commands: "Unregistering commands"
unregister-recipes: "Unregistering recipes"
unregister-tasks: "Unregistering tasks"
unregister-events: "Unregistering events"

#
# Item Lore
#
# Due to how the plugin works, don't move or replace the {metaDataDoNotReplaceMe} lines
# If you do move or replace them, the replaced line will be ignored.
#
bottle-lore:
  - "&7Collected Play Time:"
  - "&7{timeFormat}" #You can either use the {timeFormat} placeholder or use the {hours}, {minutes} and {seconds} placeholders here
  - ""
  - "&7&oTime is only collected if this"
  - "&7&oitem is inside a player inventory."

#
# Player Messages
# PAPI placeholders can be used here
#
not-enough-time: "{prefix} &cYou don't have enough time in your bottle to tick accelerate this block."
no-multi-craft: "{prefix} &cDue to a limitation you can't shift craft time bottles. Sorry for the inconvenience."

#
# Commands Section
# PAPI placeholders can be used here
#
no-permission: "{prefix} &cYou do not have permission to do this."
not-player: "{prefix} &cOnly players can execute this command."
player-missing: "{prefix} &cYou didn't specify a player."
player-not-found: "{prefix} &cNo player found by the name of {target}."

give-bottle: "{prefix} &aIf {target} has space in their inventory, they should have received the Time Bottle."
time-added: "{prefix} &aThe stored time has been increased by &7{timeAdded} &aseconds / &7{timeFormat}&a."
time-invalid: "{prefix} &cThe time parameter is invalid."
time-empty: "{prefix} &cYou didn't provide a time to add."
no-bottle: "{prefix} &cYou aren't holding a time bottle!"

received-bottle: "{prefix} &eYou have received the Time Bottle."
inventory-full: "{prefix} &cThere's no space in your inventory to give you the Time Bottle."

help-message:
  - "&3&m====================================================="
  - "&eTime In A Bottle v{version} by &f{author}"
  - ""
  - "&bCommands:"
  - "&7/tiab getBottle &eGives the player the time bottle."
  - "&7/tiab giveBottle <player> &eGives a player the time bottle."
  - "&7/tiab addTime <TimeInSeconds> &eAdds time to the bottle being hold by the player."
  - "&7/tiab reload &eReloads the lang file."
  - ""
  - "&8This plugin has been inspired by the Random Things mod."
  - "&3&m====================================================="

German Translation (By Grabenkind): https://github.com/Grabenkind/TimeInABottle-de/blob/master/lang.yml

The concept of this plugin has been inspired by:
https://lumien.net/rtwiki/items/time-in-a-bottle/

Similar projects

Plugin →