
✪ LuckyTreasure ✪ 4.18
random time and random location, make more fun for your server

THANKS FOR SHARING MY PLUGIN!
BUT THE VIDEO IS SO EARLY VERSION, IF YOU CAN UPDATE IT THAT WOULD BE PERFECT!
If your server version is under 1.15,
Please download this version: shorturl.at/cstL2
Also, If your server is using the core instead of normal spigot or paper,
you may need to use the above link. Download version X.
For the Chinese(國內或中文) server, please use the above link download version CN.
This plugin requires a placeholder API
*******************************************
| 5 basic treasures, you can make your own treasure for your server
| Features
- Multi world support
- Placeholder support
- Custom model support
- Custom treasure content
- Custom treasure
- Hologram message
- Almost all translateable
- All settings can be done in GUI
Version 3.8 new function
Version 2.9 new function quick show video
Version 2.8 new function quick show video














| How to make your own treasure
Just click create treasure XD!
| Permission
LuckyTreasure.admin - allowing to check the time, edit treasure, location, and reload
| Command
/tr - open the main GUI
/tr help - send you a command list in the chatbox
/tr gui - open the treasure content GUI
requires LuckyTreasure.admin command
/trreload - reload the config
/tr time - check the treasure time
/tr location - check the treasure location
/tr test [worldName] - spawn a treasure
/tr test [worldName] [X] [Y] [Z] [Type/Random] - directly spawn a treasure
| Placeholder
%luckytreasure_exist% - check how many treasures is existing
%luckytreasure_maxtreasure% - check the maximum treasure for the week
%luckytreasure_day% - check the day
%luckytreasure_shown% - check how many treasures was shown for the week
| Config
config.yml
# it may needs to restart server
Detect_world : world
# Version 2.4 update
# No random time treasure
Disable_random_treasure : false
# for the back button that is near the close button
# if set it to true, it needs to be a command for clicking
# for example if you using DeluxeMenu, GUI_back_command : dm open mainmenu
GUI_back_button : false
GUI_back_command : [ ]
# Detect which world can set the treasure
Enable_world :
- world
# Version 1.4 update
# world replaced name
World_name :
world : "&asurivial world"
# Max treasure in 1 week
Max_treasure : 7
# chance to no treasure ( default : 50 % -> 0.5 )
No_treasure : 0.5
# get treasure time (time base to long value )
Treasure_time_lower : 1500
Treasure_time_upper : 20000
# Treasure existing time ( default : 20 mins )
Treasure_time : 20
# version 1.2 update : placeholder support and custom line message
# If Treasure_haveExpEarn = false, the treasure will not have exp drop
Treasure_haveExpEarn : true
# Version 1.7 update
# whether have particle effect
Treasure_particle : true
# Version 1.1 update
# Enable treasure commands
Treasure_command_enable : false
# Version 4.17 update
# Enable the spawn treasure commands
Spawn_treasure_command_enable : false
# Version 1.1 update
# whether have those item above
Treasure_item_enable : true
# Version 3.8 update
# remain time setting
Treasure_hologram_enable : true
Hologram_message_ready : "&7Checking remain time..."
Hologram_message : "&7Remain: &6%min% &7mins &6%sec% &7sec"
# Version 4.0 update
# Add the replace type
Replace_check :
- AIR
- GRASS
- TALL_GRASS
- FERN
- LARGE_FERN
- ALLIUM
- AZURE_BLUET
- BLUE_ORCHID
- DANDELION
- CORNFLOWER
- LILY_OF_THE_VALLEY
- OXEYE_DAISY
- POPPY
- POTTED_POPPY
- ORANGE_TULIP
- PINK_TULIP
- RED_TULIP
- WHITE_TULIP
- WITHER_ROSE
- DEAD_BUSH
- BROWN_MUSHROOM
- RED_MUSHROOM
- SNOW
data.yml
# It will reset after week, if > 7, then day = 0, treasure = 0 ;
Day : 0
Treasure_Show : 0
message.yml
Same_item_warn : "&cThis item already exist in replace list"
# Replace GUI
Replace_GUI_title : "Replace List (Page.%page%)"
Replace_GUI_back : "&6Back to main menu"
Replace_GUI_item_lore :
- ""
- "&aClick to remove this item"
# Treasure setting GUI item lore
Treasure_Setting_GUI_item_lore : "&8↓ Command(s) and texture setting"
Treasure_Setting_GUI_item_down_lore :
- "&aLeft-Click to edit the command"
- "&eMiddle-Click to add new command"
- "&bRight-Click to change the line"
- "&cShift+Left-Click to change the texture"
- "&DShift+Right-Click to remove this command"
# World Edit GUI item lore
World_Edit_GUI_item_lore : "&8Control world setting"
World_Edit_GUI_item_down_lore :
- "&aLeft-Click to edit the line"
- "&bRight-Click to change the edit line"
- "&cShift+Right-Click to remove this world"
# Placeholder
No_exist_treasure : "&7Don't have any treasure"
Monday : "&cMonday"
Tuesday : "&6Tuesday"
Wednesday : "&eWednesday"
Thursday : "&aThursday"
Friday : "&bFriday"
Saturday : "&9Saturday"
Sunday : "&dSunday"
# Player GUI
TR_player_GUI_title : "LuckyTreasure - Main"
TR_player_GUI_back : "&6Back to main menu"
TR_player_GUI_content_item_name : "&6Treasure Content"
TR_player_GUI_content_item_lore :
- "&8Check what items inside the treasure"
- ""
- "&aClick to open the treasure content"
TR_player_GUI_exist_item_name : "&bExist treasure"
TR_player_GUI_exist_item_lore :
- "&8Check how man treasure exist now"
- ""
- "&aClick to open the exist treasure"
TR_exist_GUI_title : "Exist treasure (Page.%page%)"
TR_exist_back : "&6Back to main menu"
# Exist GUI
TR_exist_player_GUI_item_lore :
- "&8Look on this treasure remain time"
- "&8Also where is this and range"
- "&7Remain time: &b%min% &7min &b%sec% &7sec"
- "&7Range: &6%range%"
- "&7World: &6%world%"
TR_exist_admin_GUI_item_lore :
- "&8Look on this treasure remain time"
- "&8Also where is this and range"
- "&7Remain time: &b%min% &7min &b%sec% &7sec"
- "&7Range: &6%range%"
- "&7World: &6%world%"
- ""
- "&aLeft-Click teleport to the treasure"
- "&bShift+Right-Click remove this treasure"
# GUI
TR_GUI_title : "LuckyTreasure - Main"
TR_config_item_name : "&eConfig setting"
TR_config_item_lore :
- "&8Control all config setting"
- ""
- "&aClick to open the config setting"
TR_content_item_name : "&aContent view"
TR_content_item_lore :
- "&8Enter the lucky treasure gui"
- "&8Or enter the exist treasure view"
- ""
- "&aLeft-Click to open the content view"
- "&bRight-Click to open the treasure exist"
TR_treasure_item_name : "&6Treasure setting"
TR_treasure_item_lore :
- "&8Including commands and textures"
- ""
- "&aLeft-Click to open the treasure setting"
- "&bRight-Click to open the replace block list"
# Config edit GUI
Config_status_enable : "&2Enabled"
Config_status_disable : "&4Disabled"
Config_edit_GUI_title : "Main - Config Setting"
Config_edit_GUI_Back : "&6Back to the main menu"
Config_detect_world_name : "&bDetect World"
Config_detect_world_lore :
- "&8Check the treasure time in detect world"
- "&8It can change the detect world"
- "&8by enter the world name"
- "&7Status: &b%world%"
- "&cIt may needs to restart the server"
- ""
- "&aClick to change the detect world"
Config_disable_random_treasure_name : "&eDisable Random Treasure"
Config_disable_random_treasure_lore :
- "&8Check whether not spawn treasure in random time"
- "&7Status: %status%"
- ""
- "&aClick to change the status"
Config_GUI_back_button_name : "&6Gui Back button"
Config_GUI_back_button_lore :
- "&8Check whether have back button in &6/tr"
- "&7Status: %status%"
- ""
- "&aLeft-Click to change the status"
- "&bRight-Click to change the back command"
Config_max_treasure_name : "&cMax Treasure"
Config_max_treasure_lore :
- "&8Check the maximum treasure"
- "&8spawn by week"
- "&7Status: &c%status%"
- ""
- "&aClick to change the max treasure"
Config_no_treasure_name : "&dNo Treasure"
Config_no_treasure_lore :
- "&8Checking how many percentage will"
- "&8not spawn the random treasure"
- "&7Status: &d%value%%"
- ""
- "&aClick to change the no treasure value"
Config_enable_world_name : "&6Enable World"
Config_enable_world_lore :
- "&8Control the treasure in which world"
- "&8You may add the world by enter the name"
Config_enable_world_down_lore :
- ""
- "&aLeft-Click to enter a new enable world"
- "&bRight-Click to open the world edit"
Config_treasure_time_lower_upper_name : "&6Treasure Time Lower And Upper"
Config_treasure_time_lower_upper_lore :
- "&8Control the minimum time to spawn random treasure"
- "&8For minecraft &60 &7= &e0 tick &7= &b6:00am"
- "&8For minecraft &620000 &7= &e20000 ticks &7= &b2:00am"
- "&8Careful this variable type is LONG"
- "&7Status: &6%lower%&7-&6%upper%"
- ""
- "&aClick to change the treasure time lower and upper"
Config_treasure_time_name : "&bTreasure Time"
Config_treasure_time_lore :
- "&8Control the treasure existing time"
- "&8You must to know &620 &7= &b20minutes"
- "&7Status: &b%time% min&7(s)"
- ""
- "&aClick to change the treasure time"
Config_treasure_exp_name : "&2Treasure Exp Earn"
Config_treasure_exp_lore :
- "&8Control whether have exp in treasure"
- "&7Status: %status%"
- ""
- "&aClick to change the status"
Config_treasure_particle_name : "&dTreasure Particle and Hologram"
Config_treasure_particle_lore :
- "&8Control whether have particle"
- "&8and hologram around the treasure"
- "&7Particle Status: %status%"
- "&7Hologram Status: %hologram%"
- ""
- "&aLeft-Click to change the particle status"
- "&bRight-Click to change the hologram status"
Config_treasure_command_name : "&bTreasure Command"
Config_treasure_command_lore :
- "&8Control whether have execute commands"
- "&8When open the treasure"
- "&7OpenStatus: %status%"
- "&7SpawnStatus: %spawn%"
- ""
- "&aLeft-Click to change the open status"
- "&bRight-Click to change the spawn status"
Config_treasure_item_name : "&eTreasure Item"
Config_treasure_item_lore :
- "&8Control whether have item(s) in treasure"
- "&8when open the treasure"
- "&7Status: %status%"
- ""
- "&aClick to change the status"
# World edit GUI
World_edit_GUI_title : "World Edit (Page.%page%)"
World_edit_GUI_Back : "&6Back to the config setting"
# Treasure setting GUI
Treasure_setting_GUI_title : "Treasure setting (Page.%page%)"
Treasure_setting_GUI_Back : "&6Back to the mainmenu"
# Treasure GUI
GUI_title : "LuckyTreasure (Page.%page%)"
GUI_back : "&6Back to the main menu"
GUI_previous : "&7Previous page"
GUI_next : "&7Next page"
GUI_close : "&cClose Menu"
# Version 1.8 update
# Players can see the /tr gui treasure down lore
Treasure_Lore :
- "&7Exp: &e%exp%"
- "&7Chance: &a%chance%"
GUI_player_treasure_down_lore :
- ""
- "&aLeft-click to open treasure content"
# Admins can see the /tr gui treasure down lore
GUI_admin_treasure_down_lore :
- ""
- "&aLeft-Click to open treasure edit"
- "&eMiddle-Click to rename the treasure"
- "&bShift+Right-Click to remove this treasure"
# Version 1.8 update
# Inside the treasure inv back name
GUI_create_treasure_back : "&6Back to lucky treasure"
# Version 1.8 update
# Inside the treasure inv title
GUI_ceate_treasure_title : "%treasure% (Page.%page%)"
# Barrier name
GUI_no_perm_name : "&cNo Permission"
# Admins can see
GUI_create_treasure_info_name : "&7Treasure setting"
GUI_create_treasure_info_lore :
- ""
- "&aLeft-Click to edit the chance"
- "&bRight-Click to edit the exp"
GUI_create_treasure_name : "&7Create treasure"
GUI_create_treasure_lore :
- ""
- "&aClick to create a custom treasure"
# Version 1.8 update
GUI_player_create_treasure_item_lore :
- "&7Chance: &a%chance%"
- "&7Lower: &6%lower%"
- "&7Upper: &6%upper%"
GUI_create_treasure_item_lore :
- "&7Chance: &a%chance%"
- "&7Lower: &6%lower%"
- "&7Upper: &6%upper%"
- ""
- "&aLeft-Click to edit the chance"
- "&eMiddle-Click to edit the quantity"
- "&bShift+Right-Click to remove this item"
# Time and Location Message ( FOR admin )
Treasure_no_location_message : "&7[&eLucky&6Treasure&7] &7It doesn't have any treasure location now"
Treasure_location_message : "&7[&eLucky&6Treasure&7] %location%"
Treasure_time_message : "&7[&eLucky&6Treasure&7] Treasure time: &b%time%"
# Reload Message
Reload_message : "&7[&eLucky&6Treasure&7] &aThis plugin has been reload."
# Version 1.5 update
# Help Message
Help_message : "&7[&eLucky&6Treasure&7] &cDid you use the wrong method of this command? Try &6/tr help"
# Version 1.5 update
# No -perm Message
No_perm_message : "&7[&eLucky&6Treasure&7] &cYou don't have permission"
# Treasure message
GetTreasure_message :
- "&7[&eLucky&6Treasure&7] &7Player &6%player% &7has found %treasure%"
OpenPlayer_title_message : "%treasure%"
OpenPlayer_subtitle_message : "is found!"
# version 1.2 update : placeholder support and custom line message
Message :
- "&7[&eLucky&6Treasure&7] %treasure% &7has been found in &6%world% &7It will gone at &b%time%m&7. Treasure is near at &6%treasure_X%&7, &6%treasure_Z%&7."
Gone_message : "&7[&eLucky&6Treasure&7] &7One of the %treasure% &7is gone..."
# Version 2.4
# for admin to know today have treasure
Have_treasure_today_message : "&7[&eLucky&6Treasure&7] &7It will show up a &6treasure &7today!"
treasure.yml
# Treasure EXP
Treasure_exp :
common : 1000
normal : 2000
better : 5000
perfect : 10000
mystery : 50000
#example_treasure : 100
# Treasure name
Treasure_name :
common : "&f&lCommon Treasure"
normal : "&a&lNormal Treasure"
better : "&e&lBetter Treasure"
perfect : "&6&lPerfect Treasure"
mystery : "&d&lMystery Treasure"
#example_treasure : "&7&lExmaple Treasure"
# Version 1.7 update
# Treasure texture (base64 )
Treasure_texture :
common : "eyJ0ZXh0dXJlcyI6eyJT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QyZTA1NGEzZjIxMmMzZTAwOTIxMzgyOTkxNzJkN2Q4ZjNkNDM4MjE0Y2E5NzJhYyJ9fX0="
# Treasure chance ( 0.5 = 50 %, 0.001 = 0.1 % )
Chance :
common : 0.4
normal : 0.35
better : 0.15
perfect : 0.07
mystery : 0.03
#example_treasure : 0.2
# Version 4.17 update
# Command that when treasure is spawned
# %world % as spawn treasure world
# %x %, %y %, %z % as the location X, Y, Z
Spawn_treasure_command :
common :
0 :
chance : 0.5
command : summon zombie %x % %y % %z %
normal :
0 :
chance : 0.5
command : summon zombie %x % %y % %z %
better :
0 :
chance : 0.5
command : summon zombie %x % %y % %z %
perfect :
0 :
chance : 0.5
command : summon zombie %x % %y % %z %
mystery :
0 :
chance : 0.5
command : summon zombie %x % %y % %z %
#example_treasure :
# 0 :
#chance : 0.5
#command : summon zombie %x % %y % %z %
# Version 1.1 update
# Command that when treasure is opened ( %player % as open player name )
# Version 3.6 update
# %world % as open treasure of the world
# %x %, %y %, %z % as the location X, Y, Z
Treasure_command :
common :
0 :
chance : 0.5
command : money give %player % 1
normal :
0 :
chance : 0.5
command : money give %player % 1
better :
0 :
chance : 0.5
command : money give %player % 1
perfect :
0 :
chance : 0.5
command : money give %player % 1
mystery :
0 :
chance : 0.5
command : money give %player % 1
#example_treasure :
# 0 :
#chance : 0.5
#command : money give %player % 1
# Treasure setting (chance : 0.2 -> 20 % ) to drop the item
# at least of value = lower, max value = upper
Treasure :
common :
COAL :
lower : 128
upper : 192
chance : 0.5
GOLDEN_APPLE :
lower : 8
upper : 16
chance : 0.4
LEATHER :
lower : 32
upper : 64
chance : 0.5
GOLD_INGOT :
lower : 32
upper : 64
chance : 0.5
ARROW :
lower : 128
upper : 192
chance : 0.4
normal :
LEATHER :
lower : 64
upper : 128
chance : 0.5
GOLD_BLOCK :
lower : 16
upper : 32
chance : 0.4
OBSIDIAN :
lower : 32
upper : 64
chance : 0.4
ENCHANTED_GOLDEN_APPLE :
lower : 1
upper : 2
chance : 0.2
DIAMOND_BLOCK :
lower : 6
upper : 12
chance : 0.3
better :
ENDER_PEARL :
lower : 32
upper : 64
chance : 0.3
BLAZE_ROD :
lower : 16
upper : 64
chance : 0.5
DIAMOND_BLOCK :
lower : 4
upper : 8
chance : 0.3
ENCHANTED_GOLDEN_APPLE :
lower : 2
upper : 4
chance : 0.1
NETHER_STAR :
lower : 1
upper : 3
chance : 0.3
perfect :
DIAMOND_BLOCK :
lower : 8
upper : 16
chance : 0.3
NETHER_STAR :
lower : 4
upper : 5
chance : 0.4
GOLD_BLOCK :
lower : 32
upper : 64
chance : 0.5
NETHERITE_SCRAP :
lower : 16
upper : 32
chance : 0.2
ENCHANTED_GOLDEN_APPLE :
lower : 4
upper : 6
chance : 0.2
mystery :
NETHERITE_SCRAP :
lower : 32
upper : 64
chance : 0.2
ENCHANTED_GOLDEN_APPLE :
lower : 6
upper : 8
chance : 0.4
TOTEM_OF_UNDYING :
lower : 1
upper : 2
chance : 0.3
END_CRYSTAL :
lower : 5
upper : 10
chance : 0.3
TRIDENT :
lower : 1
upper : 1
chance : 0.2
#example_treasure :
#DIAMOND :
#lower : 100
#upper : 300
#chance : 0.5
world.yml
# The range of treasure for each world
World :
world :
# chance to half neg location ( default : 20 % -> 0.2 )
Half_Neg_location : 0.2
# chance to neg location ( default : 50 % -> 0.5 )
Neg_location : 0.5
# set max range of the treasure ( default : 30000 -> 0 - 30000 )
Treasure_X_lower : 0
Treasure_X : 30000
Treasure_Z_lower : 0
Treasure_Z : 30000
# Treasure Y detection
# Treasure Y Max means if check the block Treasure_Y to Treasure_Y_Max still has space
# If not, It 'll change other position to spawn treasure
Treasure_Y: 5
Treasure_Y_Max: 100
# send players information of the treasure setting (neg and pos)
# It means the message for players is random -30 to 30 range of the treasure real location
Range_X: 30
Range_Z: 30
I also develop a team plugin, stock plugin, and race plugin. If you guys want to see more plugins, please give me five stars for supporting me!!! Also if you can donate to me that would be perfect.
race plugin (includes 8 races [Elf, Dwarf, Troll, Vampire, Demon, Angel, Werewolf, Ent], each race has 8 ability, its has particle and cool down. You need to do something to become the race you want to be. Or the admin help you)
team plugin (it can create, edit, check the team list in GUI, each team has a number. When you have a teammate, you can split the item, exp, money (require MoneyFromMob). It will check your teammate whether in the 100 range of your distance.
stock plugin (includes 14 stocks, buy stock and sell a stock, each stock have a tax increase everyday morning, every day the stock balance will change in-game time 7 am, it also have news every day but 1 week only allow 15 news)
Feel free to find me in discord( LAMMA#7870) if there have any issues.
License
Once you download the plugin, you accept the following terms of use:
• You will not be able to redistribute the plugin. and or its code
• You cannot upload the plugin to another forum or page, without the developer's permission.
• You are not allowed to decompile the plugin or use its code in any project without permission from the developer.