What this does?
PresentHunt is a lightweight crate drop plugin, it can be summoned with a present flare (/ph give <player> flare <amount>)
There is also a random present drop every 25 minutes, in a random location. Co-ordinates are broadcasted on land.
All rewards are configurable with option of commands
When naming an item "DIRT", this will allow the use of the commands, if item is not named "DIRT" in the config, the item you listed will drop naturally.
See config:
Code (Text):
Falling-Block: "ANVIL"
Landed-Crate: "CHEST"
Amount-Of-Items: 3
World: "world"
RandomDrop-Timer: 1800 #seconds
Coordinates:
x: 5000
z: 5000
Random-Landed-Broadcast: "&c&lPresent Hunt \n&7&lA random present has dropped at &cx: %randomx% z: %randomz%"
Hologram: "&f&l** &c&lPRESENT CRATE &f&l**"
Flare-Permission: "ph.admin"
Summoned-Message: "&7You have summoned a &cPresent&7."
Received-Flare-Message: "&7You received &f&l %amount% &cPresent Flares."
Given-Flare-Message: "&7You have given &f&l%player% &c%amount% &cPresent Flares."
Flare:
item: "REDSTONE_TORCH"
name: "&f&l** &c&lPRESENT SUMMON &f&l**"
lore:
- ""
- "&7&oRight click to summon a present to your location!"
Rewards:
1:
chance: 70
item: "DIAMOND"
amount: 5
name: "DIRT" #This item will run the command and not give the item.
lore:
- ""
- "&7Special xmas diamond"
enable-enchants: false
enchants:
- "DURABILITY:3"
commands:
- "give %player% glass 1"
2:
chance: 65
item: "DIAMOND_SWORD"
amount: 1
name: "&c&lXMAS DIAMOND SWORD"
lore:
- ""
- "&f&lSpecial xmas diamond sword"
enable-enchants: true
enchants:
- "DURABILITY:3"
commands:
- "give %player% glass 1"
3:
chance: 90
item: "DIAMOND_HELMET"
amount: 1
name: "&c&lXMAS DIAMOND HELMET"
lore:
- ""
- "&f&lSpecial xmas diamond helmet"
enable-enchants: true
enchants:
- "DURABILITY:3"
commands:
- "give %player% glass 1"
4:
chance: 25
item: "DIAMOND_CHESTPLATE"
amount: 1
name: "&c&lXMAS DIAMOND CHESTPLATE"
lore:
- ""
- "&f&lSpecial xmas diamond chestplate"
enable-enchants: true
enchants:
- "DURABILITY:3"
commands:
- "give %player% glass 1"
5:
chance: 90
item: "DIAMOND_BOOTS"
amount: 1
name: "&c&lXMAS DIAMOND BOOTS"
lore:
- ""
- "&f&lSpecial xmas diamond helmet"
enable-enchants: true
enchants:
- "DURABILITY:3"
commands:
- "give %player% stone 20"
6:
chance: 25
item: "DIAMOND_LEGGINGS"
amount: 1
name: "&c&lXMAS DIAMOND LEGGINGS"
lore:
- ""
- "&f&lSpecial xmas diamond chestplate"
enable-enchants: true
enchants:
- "DURABILITY:3"
- "PROTECTION_ENVIRONMENTAL:4"
commands:
- "give %player% glass 1"
7:
chance: 25
item: "GOLDEN_APPLES"
amount: 1
name: "&6&lGolden Apples"
lore:
- ""
enable-enchants: false
enchants:
- "DURABILITY:3"
commands:
- "give %player% glass 1"
This was just a small project I thought i'd do seen as it's christmas.