Skip to content

Meteor meteor

The meteor feature provides an envoy-like system for spawning loot throughout a warzone.

Config

meteor-shower-leadup-minutes

The amount of time, in minutes, that it takes for a meteor shower to start after its initial broadcast.

meteor-shower-locations

The amount of crates to spawn during a meteor shower.

prevent-flares-near-water

If meteor flares should be prevented if used near water.

flare-cooldown

The cooldown between uses of flares, in seconds.

meteors-have-no-clip

If meteors should have no-clip while on their way to their set location.

directly-give-rewards

If meteor rewards should be given directly or dropped on the ground.

flares-must-be-in-warzone

If flares must be placed in warzone.

prevent-flares-in-regions

The regions in which flares will cannot be placed.

allow-flares-in-regions

The regions in which flares can be placed, overriding prevent-flares-in-regions.

potions-to-apply-when-opening-crates

These are the potion effects applied to players when opening crates.

placeholder-items-when-opening

These are the items that fly out of the crate when opening that you can't pick up.


crate-types Section

This section defines the different types of crates that can be used across the plugin.

Note

Items are added to crates in-game. Use /meteor additem (crate) (chance) to do so.

To create a meteor type, define it like the following:

    alientech:
      #ITEMS ARE SAVED AS DATA IN THEIR RESPECTIVE DATA CONFIGS. THIS IS DUE TO THEM BEING SAVED AND LOADED AS BASE64.
      #ADD ITEMS WITH THE COMMAND IN GAME.
      #THIS IS TRUE FOR SPAWN LOCATIONS AS WELL.
      name: "&f&kG&r &b&lAlien Tech Crate&r &f&kG&r"
      shower-spawn-chance: 20.0
      ticks-to-open: 200
      minimum-rewards: 1
      maximum-rewards: 3
      crate-block-type: ENDER_CHEST
      potion-effects:
        - 'SLOW:1:100'
      placeholder-items:
        - STONE
      commands:
        - 'broadcast &f{PLAYER} Just opened a &bAlien Tech Crate &fat &b{LOCATION}&f!'
      flare-item:
        type: TORCH
        is-glowing: true
        name: '&b&lAlienTech &r- &4&lFLARE'
        lore:
          - '&7This flare will spawn {AMOUNT_TO_SPAWN} meteors wherever you want!'

name

The display name of the crate.

shower-spawn-chance

The chance for this crate to spawn during a meteor shower.

ticks-to-open

The amount of time the player has to spend while looking at the crate for it to open. If set to a number <= 0, the crate must be opened with a right-click.

minimum-rewards

The minimum amount of item rewards to give the player.

maximum-rewards

The maximum amount of item rewards to give the player.

crate-block-type OPTIONAL

This is the block type that's placed when the crate lands. It defaults to ENDER_CHEST and is not necessary to define.

potion-effects OPTIONAL

This overrides the default potion effects when opening setting.

placeholder-items OPTIONAL

This overrides the default placeholder items setting.

commands

A list of commands to run when the player opens the crate.

flare-tiem

The item to use when a flare is given for this crate type.


Command

  • /meteor when - Shows when the next meteor shower will occur.
  • /meteor additem (crate) (chance) - Adds an item to the crate's reward set with the given chance.
  • /meteor removeitem (crate) (index) - Removes the item at the given index from the crate.
  • /meteor listitems (crate) - Displays all items, and their indexes, in the crate.
  • /meteor edit (crate) - Enters 'edit' mode for the given crate. Place any block type to mark the location as a crate spawn location.
  • /meteor now - Spawns a meteor shower immediately.
  • /meteor giveflare (crate) (player) [amount=1] [toSpawn=3] - Gives the player the given flare.

Permissions

  • Base Level - Some commands.
  • Admin Level - Some commands.