GithubHelp home page GithubHelp logo

fantahund / fancyfirework Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 2.0 2.67 MB

Fun with Firework

Home Page: https://www.spigotmc.org/resources/fancyfirework.98809/

License: GNU General Public License v3.0

Java 100.00%
fun firework paper papermc boom spigot spigot-plugin minecraft plugin bukkit

fancyfirework's Introduction

FancyFirework

bStats Servers bStats Servers Spiget Downloads Spiget Stars

A simple plugin that adds custom fireworks to your server.
Implements support for vote rewards using NuVotifier and loot table customization to acquire firework items.

We recommend to use paper!

Default Fireworks

There are a couple default fireworks available that can be used out of the box.
Batteries,
Fountains,
and a Bang Snap
The batteries and fountains come in different colors (blue, green, orange, pink, purple, red, yellow) and other varieties like pride and rainbow.

Example
(An example of three types of fountains)

Acquire Fireworks

There are multiple ways players can acquire fireworks.

Spawn Random Fireworks

One way would be to use the firework spawn feature of this plugin.
This will spawn fireworks on players. Once a firework explodes, it drops a random item from all available firework items.
The fireworks will only spawn if the player has no blocks above, blocking the sky.
This spawn feature can be enabled and configured in the config.

enabled: false  # Toggle the spawn feature  
spawnrate: 100  # The spawn rate of the fireworks. The higher the number, the less likely it will spawn.  

Vote Rewards

Another way would be to use NuVotifier, which will draw a random custom firework as a vote reward.
Can be toggled in the config.

votereward: false # Toggle vote reward feature  

Loottables

You can also enable them inside all chest or chest minecart loot tables.
This feature can be configured in the config.

loottable:  
  enabled: false   # Toggle the loot table feature  
  chance: 0.5      # The chance of the item spawning. (e.g. 0.5 = 50%)

Redstone Mode

The fireworks can be activated with Redstone if it is active in the config.

redstonemode: false # Toggle Redstone Mode

Lit Player

Fireworks can be lit on the head of players.

litplayer: true # Toggle if players can lit.

Commands

Main command: /fancyfirework or alias /ff

/ff enable or /ff disable

Permission: fancyfirework.admin
Enables or Disables the spawning of fireworks on players.
See Spawn Random Fireworks above.

/ff setspawnrate

Permission: fancyfirework.admin
Sets the spawn rate of the random firework spawning.
The higher the number, the less likely they will spawn.
See Spawn Random Fireworks above.

/ff give [key]

Permission: fancyfirework.mod
Gives you the specified firework item of the specified quantity.

(This plugin was created in a matter of two days! Documentation and possible future features will be added later on!)
BSTATS

fancyfirework's People

Contributors

brokkonaut avatar fantahund avatar wolfyscript avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fancyfirework's Issues

Issue | Paper auto-replenish loot problem

If you use the "auto-replenish" option in paperspigot, then fancyfirework seems to have a problem with it. The loot of the crate is refilled depending on the settings in Paper. However, the fireworks regenerate every time you open the chest.

fancyfirework loottable config:

loottable:
  enabled: true
  chance: 0.5
  wanderingtrader:
    enabled: false
    chance: 0.3
    minprice: 8
    maxprice: 32
    maxuse: 4

paperspigot paper-world-default loottable config

lootables:
  auto-replenish: true
  max-refills: -1
  refresh-max: 4d
  refresh-min: 12h
  reset-seed-on-fill: true
  restrict-player-reloot: true

video:
https://github.com/fantahund/FancyFirework/assets/18620563/8e0cf4a6-0052-4f3a-846e-cd3fa62c8ba6

hope you can fix this somehow

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.