Loot Crate Plugin

Status
This thread has been locked.

FZR_1987

When I RIP, Pls # rm -rf *
Premium
Feedback score
0
Posts
10
Reactions
2
Resources
0
Good day,
Please see below for detailed plugin requirement.

A command is run that spawns a chest with defined loot at a random location.
The plugin runs commands when crates have been dropped within a configurable radius between x and z
The chest will have a beacon shining up from it
The chest will blow up with a configurable power after a configurable amount of time.

Some more features are described below, please DM me for more info, or post your offer for development below.

Thank you.

#########################
### Loot Crate Config ###
#########################
#
### Features ###########################################################################################################################
#
# Drop loot crates at random destinations
# Loot crates contain items defined as content sets, contents are randomised
# Run custom commands when loot crates are dropped, expires
# GUI Content Set creator / editor
#
### Commands & Permissions #############################################################################################################
#
# /lootcrate drop [x] [z] [ContentSet] | Drops a loot crate at a random location. Optional location and chest content sets specified.
# - lootcrate.drop
# /lootcrate reload | Reloads the config file.
# - lootcrate.reload
# /lootcrate list | Displays current loot crates and their exact locations.
# - lootcrate.list
# /lootcrate remove [!] | Removes all loot crates from the map. Use optional ! to blow up while removing.
# - lootcrate.remove
# /lootcrate set [edit/delete/create/list] <SetName> | Edit, Delete, Create or List Content Sets in GUI and chat
# - lootcrate.set
# /lootcrate blacklist <player> [TimeInSeconds] | Will deny a player from opening a crate permanently or for define period | Command toggles
# - lootcrate.blacklist
#
### Variables ##########################################################################################################################
#
# {x}
# - X Position chosen for crate drop
# {z}
# - Z Position chosen for crate drop
# {radius}
# - Radius defined in 'DropLocations'
# {requiredonline}
# - RequiredOnline defined in 'CrateSettings' -> 'Rules' -> 'PlayerCountRequirement'
# {lowplayertimeout}
# - LowPlayerCrateRemoveTimeout defined in 'CrateSettings' -> 'Rules' -> 'PlayerCountRequirement'
# {crateexpiry}
# - RemoveAfter defined in 'CrateSettings' -> 'Expire'
# {blacklisttime}
# - Amount of seconds defined towards a user using /lootcrate blacklist
# {traptime}
# - Timer defined in 'CrateSettings' -> 'TrapCrates'
#
########################################################################################################################################

# DropLocations:
# MinX: Minumum X value considered for drop location
# MaxX: Maximum X value considered for drop location
# MinZ: Minumum Z value considered for drop location
# MaxZ: Maximum Z value considered for drop location
# Radius: Radius to randomly drop crate around chosen location
# DropWorldguard: Should crate drops be allowed in Worldguard Regions?
# DropGriefprevention: Should crate drops be allowed in Griefprevention Claims?
DropLocations:
Worlds:
- 'world'
MinX: '-25000'
MaxX: '25000'
MinZ: '-25000'
MaxZ: '25000'
Radius: '100'
DropWorldguard: 'false'
DropGriefprevention: 'false'
# CrateSettings:
# CommandsOnDrop: Command to run when /lootcrate drop is run
CrateSettings:
CommandsOnDrop:
- 'example command 1'
- 'schedule create drop {crateexpiry} &eLoot crate within {radius} radius of X{x} Z{z} &7| &cSelf Destruct Activated'
# Expire: Crate settings related to expiry
# RemoveAfter: Amount of seconds before crate is removed from world. 300 = 5 Minutes
# ExplodeOnRemove: Will cause explosion sound and damage if enabled. true/false
# ExplosionPower: Value between 1-10 ( 1 = 1x1 TNT, 10 = 10x10 TNT )
# ExplosionBurn: Will players & mobs within the burn radius catch on fire upon crate explosion? true/false
# ExplosionBurnRadius: Value between 1-10. Radius to burn players & mobs upon crate explosion.
# ExplosionDamageBlocks: Will blocks around the crate be damaged on explosion? true/false
# ExplosionDamageEntities: Will players and other entities around the crate be damaged on explosion? true/false
# NukePower: Value between 1-10. Multiplier for ExplosionPower ( ExplosionPower x NukePower ). WARNING - This can crash your server if you are not careful.
# NukeBurn: Value between 1-10. Multiplier for ExplosionBurn ( ExplosionBurn x NukeBurn ). WARNING - This can crash your server if you are not careful.
Expire:
RemoveAfter: '300'
ExplodeOnRemove: 'true'
ExplosionPower: '3'
ExplosionBurn: 'true'
ExplosionBurnRadius: '10'
ExplosionDamageBlocks: 'true'
ExplosionDamageEntities: 'true'
NukePower: '1'
NukeBurn: '1'
# TrapCrates: Settings related to Trap Crates
# Use: When true, there is a defined chance that a dropped crate will be a trap that blows up after the timer runs out.
# Chance: Percentage chance for a dropped crate to be a trap.
# Timer: Amount of time in seconds before the crate blows up.
# CommandsOnTrap: Commands that are run when a user opens the Chest, triggering the Timer.
# Items: Items inside the trap crate.
# CanRemove: When set to false the item can not be removed from the chest.
# Slot: Slot to use in Chest ( 0-26 )
# Item: Minecraft Item Name ( Example STONE or DIAMOND_PICKAXE )
# Amount: Amount of item to place in chest. Max = 64
# ItemName: Name displayed on item in chest/user inventory.
# Lore: Lore displayed on item in chest/user inventory.
# Enchants: Minecraft enchantments to apply to item.
TrapCrates:
Use: 'true'
Chance: '5'
Timer: '5'
CommandsOnTrap:
- 'schedule delete drop'
- 'schedule create trap {traptime} &cThe crate was a trap! RUN!'
Items:
CanRemove: 'false'
Slot: '13'
Item: 'BARRIER'
Amount: '1'
ItemName: '&cTrap Chest, RUN!'
Lore:[]
Enchants:[]
# Beacon: Crate beacon settings
# Use: Should the crate emit a beacon signal? true/false
# Color: Color to emit from beacon ( red , green , blue , yellow , white , black , pink , purple , brown , grey )
Beacon:
Use: 'true'
Color: 'red'
# Effects: Potion effect settings
# Use: Should effects be given? true/false
# Radius: Value between 1-50. Radius from crate player is required to enter to receive effects.
# Effects: Minecraft potion effects ( EffectName:Multiplier:Duration )
Effects:
Use: 'true'
Radius: '2'
Effects:
- 'regeneration:1:10'
- 'speed:1:10'
# Rules: Rules applying to Crate drops
# PlayerCountRequirement:
# Use: Enable player count requirement for /lootcrate drop? true/false
# RequiredOnline: Minimum players for /lootcrate drop to drop a crate.
# CommandsNotEnoughOnline: Commands that are run when not enough players are online and /lootcrate drop is performed.
# LowPlayerCrateRemove: Should an active crate drop be removed if player count drops under RequiredOnline? true/false
# LowPlayerCrateRemoveTimeout: Time in seconds before LowPlayerCountTimeoutCommands is excecuted.
# LowPlayerCountdownCommands: Commands will be excecuted as soon as players drop under RequiredOnline and there is an active crate drop.
# CancelRemoveIfCountRestores: Cancel crate removal if RequiredOnline is met during LowPlayerCrateRemove? true/false
# PlayerCountRestoreCommands: Commands will be excecuted if RequiredOnline is met during LowPlayerCrateRemoveTimeout. Requires CancelRestoreIfCOuntRestores to be 'true'
# LowPlayerCountTimeoutCommands: Commands will be excecuted if RequiredOnline is not met during LowPlayerCrateRemoveTimeout.
Rules:
PlayerCountRequirement:
Use: 'true'
RequiredOnline: '4'
CommandsNotEnoughOnline:
- 'broadcast &eCrate drop aborted | Not enough players online'
- 'broadcast &7Required Players: &e{requiredonline}'
- 'broadcast &7Next Drop In: &e1 Hour'
LowPlayerCrateRemove: 'true'
LowPlayerCrateRemoveTimeout: '30'
LowPlayerCountdownCommands:
- 'schedule create playercountlow {lowplayertimeout} &eCrate will be removed due to low player count - Required {requiredonline}'
CancelRemoveIfCountRestores: 'true'
PlayerCountRestoreCommands:
- 'schedule delete playercountlow'
LowPlayerCountTimeoutCommands:
- 'lootcrate remove !'
- 'broadcast &eCrate removed - Not enough players online - Required {requiredonline}'
- 'schedule delete drop'
# ContentSets: Sets of items to place inside crates.
# Randomize: true/false - If set to true, content sets will randomize for example: 1,5,2,9,23. If false, content sets will be given in order: 1,2,3,4,5,6,7
# 1: This is the content set number, each one has to be unique. Unlimited number of sets can be defined.
# 0: This is the item number in the set, each one has to be unique, up to 26 items per set, value 0-26.
# CanRemove: When set to false the item can not be removed from the chest.
# Slot: Slot to use in Chest ( 0-26 )
# Item: Minecraft Item Name ( Example STONE or DIAMOND_PICKAXE )
# Amount: Amount of item to place in chest. Max = 64
# ItemName: Name displayed on item in chest/user inventory.
# Lore: Lore displayed on item in chest/user inventory.
# Enchants: Minecraft enchantments to apply to item.
ContentSets:
Randomize: 'true'
1:
0:
CanRemove: 'true'
Slot: '13'
Item: 'STONE'
Amount: '1'
ItemName: '&aGlowing Stone'
Lore:
- '&7Useless glowing stone placed in middle of chest'
- '&7Second lore line'
Enchants:
Sharpness:
Level: '1'
HideData: 'true'
Knockback:
Level: '1'
HideData: 'true'
1:
CanRemove: 'true'
Slot: '9'
Item: 'DIAMOND_PICKAXE'
Amount: '1'
ItemName: '&bLost Diamond Pick'
Lore: '&7Just a regular diamond pickaxe placed in middle left of chest'
Enchants:[]
2:
Slot: '17'
Item: 'DIAMOND_PICKAXE'
Amount: '1'
ItemName: '&bLost Diamond Pick'
Lore: '&7Just a regular diamond pickaxe placed in middle right of chest'
Enchants:[]
2:
1:
CanRemove: 'true'
Slot: '13'
Item: 'WITHER_SKULL'
Amount: '1'
ItemName: '&cWither Skull'
Lore:[]
Enchants:[]
# MiscMessages: Misc plugin messages
MiscMessages:
NoPerms: '&cNo Permissions'
BlacklistedPermanent: '&cYou are not permitted to open this crate'
BlacklistedTemporary: '&eYou can only open a crate in another {blacklisttime} seconds'
ConfigReload: '&aLootCrate has been reloaded'
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.
Status
This thread has been locked.
Top