GithubHelp home page GithubHelp logo

burnouttorches's Introduction

BurnoutTorches

A Spigot/Paper plugin that causes torches to break and drop an item after a set time.

Features:

  • All options are customizable
  • Refueling torches with any number of customizable items by right-clicking a torch
  • Optional creative mode bypass
  • Optional hologram displaying new remaining time when refueling
  • A '/bt reload' command to reload the config without restarting your server

If you have an issue or have found a bug, please create an issue and include as much information as possible!

Do not manually edit torches.yml, this is used to store existing torches and their remaining burn time when shutting down the server.

Permissions:

  • burnouttorches.reload (reload the plugin)

Configuration:

Option Default Information
time 60 The time in seconds for torches to burn out. Decimals are not supported.
drop STICK The item to drop when a torch burns out. An item list can be found here.
allow-refuelling true If players should be able to refuel torches.
refuel-type RESET If, when refuelling, time should be added to the existing remaining time or if it should be reset to the configured time. (can be RESET or ADD)
sound-on-fuel true If a fire charge sound should play when refuelling a torch.
particle-on-fuel true If green particles should show when refuelling a torch.
hologram-on-fuel true If a hologram should show when refuelling displaying how much time is now left on the torch. Only works if refuel-type is ADD.
refuel-items COAL, CHARCOAL What items are able to be used to refuel torches.
burnout-in-creative false If torches placed in creative mode should burn out or be refuelable.
autosave true If torches should periodically be saved to the disk, instead of only at shutdown.
autosave-frequency 600 How often (in seconds) torches should be saved to the disk if autosaving is enabled.

burnouttorches's People

Contributors

maxwellward avatar qwertyquerty avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

qwertyquerty

burnouttorches's Issues

Add time when fueling instead of resetting timer

Rather than resetting the timer to the config value when adding fuel, time should instead be added. For example, if you add coal it will add 50% more time or will add an extra 1 minute.

Different types of fuel in the config should give a customizable different amount of bonus time, either a percentage or set amount of time.

This should be toggle-able.

Option to show a hologram for X seconds with the new time when refuelling torch

Depends on #7 being completed first

When refuelling a torch, show a hologram between the torch and the player with the new amount of time remaining.

The config should have a toggle, an option to change how long the hologram stays, and a way to change how the hologram looks (placeholder replacements with MiniMessage).

The armour stands used for the hologram should have a unique piece of data so they can be looped and cleared on server start as a backup in case a crash caused one not to be removed.

Option to refill torches with coal or other fuel

This could be as simple as right-clicking to reset the timer or opening a furnace/hopper GUI to place extra fuel in (furnace may be best as the top slot can be used to hold an item with information in its lore)

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.