- Fixed the issue on spawn command is not available
- Added a new feature for despawn treasure command
- Updated the API to 16
# This is not the remake version, but the GUI get changed
Add below text into
config.yml
Code (Java):
# Version
4.2 update
# Enable the despawn treasure commands
Despawn_treasure_command_enable
:
false
Add below text into
treasure.yml
Code (Java):
# Version
4.2 update
# Command that when treasure no one find and despawn
#
%world
% as spawn treasure world
#
%x
%,
%y
%,
%z
% as the location X, Y, Z
Despawn_treasure_command
:
common
:
0
:
chance
:
1
command
: summon zombie
%x
%
%y
%
%z
%
normal
:
0
:
chance
:
1
command
: summon zombie
%x
%
%y
%
%z
%
better
:
0
:
chance
:
1
command
: summon zombie
%x
%
%y
%
%z
%
perfect
:
0
:
chance
:
1
command
: summon zombie
%x
%
%y
%
%z
%
mystery
:
0
:
chance
:
1
command
: summon zombie
%x
%
%y
%
%z
%
#example_treasure
:
#
0
:
#chance
:
0.5
#command
: summon zombie
%x
%
%y
%
%z
%
- Fixed some issues on new features on 4.191
- Fixed some issues on new features on 4.19
If you find any issues, please feel free to go support discord, click below link to enter
![[IMG]](/proxy/image?url=https%3A%2F%2Fimgur.com%2FzIOBWWv.png)
- Added a new feature about the chance of treasure type for world
-- It means the world has its own chance for each treasure type
-- optional usage
- Added support discord for supporting
- Checked the particle run normally in testing
world.yml (optional setting)
Code (Java):
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, Itll 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
# version
4.19
#
(optional
) override the chance of treasure
Treasure
:
# whether override the chance
#
if
this set to
true, must contain
# all the treasure type in below chance
override
:
true
# the chance list
chance
:
common
:
0.5
normal
:
0.5
better
:
0.5
perfect
:
0.5
mystery
:
0.5
- Added new function of the command chance
Change the treasure.yml
Code (Java):
# 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
- Added spawn treasure commands
-- It allows you to execute commands when the treasure spawn
-- The changing status has also been added
- Fixed the issue of auto-generated default treasure command is not available
You need to change config.yml, message.yml, and treasure.yml
I saw no space to put the edit command in GUI, so... I may not add the spawn treasure command edit function in GUI.
btw, I finished the LuckyStock plugin. You guys can watch that plugin when the spigot is approval.
Add below content in treasure.yml
Code (Java):
# 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
:
- summon zombie
%x
%
%y
%
%z
%
normal
:
- summon zombie
%x
%
%y
%
%z
%
better
:
- summon zombie
%x
%
%y
%
%z
%
perfect
:
- summon zombie
%x
%
%y
%
%z
%
mystery
:
- summon zombie
%x
%
%y
%
%z
%
#example_treasure
:
#
- summon zombie
%x
%
%y
%
%z
%
Add below content in config.yml
Code (Java):
# Version
4.17 update
# Enable the spawn treasure commands
Spawn_treasure_command_enable
:
false
Change below content in message.yml
Code (Java):
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"
- Fixed the issue when putting the item, and the GUI is not working due to the item. Now it will auto-delete the failed item input.
Nothing change in config.
Good news! I have almost finished the stock plugin, I hope all of you can have a look when it finishes!
- Fixed some issues of random method
Nothing change in config.
> ATTENTION <
Now I am writing the stock plugin, this plugin will not update anymore unless Minecraft updates or get some error. Try version X if the normal version gets any issues!
Why did no one mention that before XD, if you click the slot in treasure content inventory, it will send a player message 'wtf'.
- Fixed the issue of the treasure content (Each treasure)
Nothing change in config.
> ATTENTION <
Now I am writing the stock plugin, this plugin will not update anymore unless Minecraft updates or get some error. Try version X if the normal version gets any issues!
- Fixed the issue on spawn random treasure
-- It will fix the server crash by spawning directly random treasure
Nothing change in config.
> ATTENTION <
Now I am writing the stock plugin, this plugin will not update anymore unless Minecraft updates or get some error. Try version X if the normal version gets any issues!
- Fixed some issues on spawn treasure
Nothing change in config.
> ATTENTION <
Now I am writing the stock plugin, this plugin will not update anymore unless Minecraft updates or get some error. Try version X if the normal version gets any issues!
- Fixed the world edit GUI
Nothing change in config.yml
Dude, who am I? GUI done all setting is my plugin title.
Of course, the plugin has replace list GUI.
in Config.yml, replace_check has
- POTTED_POPPY
Remove it because there would be nothing to show.
- Added the replace list GUI in treasure setting
-- right-click treasure setting
-- simple drop item and will auto add into replace list
Message.yml, add below text
Code (Java):
# Replace message
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"
Message.yml, replace below text
Code (Java):
TR_treasure_item_lore
:
-
"&8Including commands and textures"
-
""
-
"&aLeft-Click to open the treasure setting"
-
"&bRight-Click to open the replace block list"
- Fixed the issue on hologram by creating in your location will not spawn a hologram
- Fixed some issues on hologram by chunk load or unload.
- Added a feature can be added the replace block to spawn treasure
Need to add below text in config.yml
Code (Java):
# 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
- Added to disable firework damage by opening the treasure
- Fixed a feature that admin /tr don't have back button
-- this situation only can be found in your setting enable the back button
- Removed some data cause data redundancy
- Changed the detection of load hologram
-- The chunk will be loaded and check whether to spawn a hologram
It should reduce some usage of servers.
When the treasure opens, the hologram will remove immediately.
- Added when the chunk has been unloaded, the hologram will remove it till the chunk has loaded.
-- It can fix no one opens the treasure and unloads, it will freeze the hologram.
- Fixed the hologram issue
-- the hologram will now spawn when the player is near the chunk.
- Fixed command /tr test has some issues on random
- Added treasure hologram
config.yml and message.yml changed.
config.yml, add below text
Code (Java):
# 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"
message.yml, replace the below text
Code (Java):
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"
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"
- Changed the /tr test command now can be used for console
- Added a feature that treasure will not spawn on some grass or flower, it will replace them.
- Added treasure command can get the treasure location by using
-- %world% = the treasure location of the world
-- %x% = the treasure location of X
-- %y% = the treasure location of Y
-- %z% = the treasure location of Z
- Fixed exist GUI the negative location treasure display wrong location
- Added placeholder can be added in player GUI
message.yml
Code (Java):
TR_player_GUI_content_item_lore
:
-
"&8Check what items inside the treasure"
-
'&8It will refresh the treasure shown by week'
-
'&7Day: %luckytreasure_day%'
-
-
""
-
"&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"
-
'&7Shown: %luckytreasure_shown%&8/&7%luckytreasure_maxtreasure%'
-
'&7Status: %luckytreasure_exist%'
-
""
-
"&aClick to open the exist treasure"
- Fixed the coding of max treasure in week
Minecraft 1.18 seems is cool to use this plugin so I will let the plugin stay clean and nothing gonna change yet.
- Changed Message.yml -> Config_GUI_back_button_lore
For some of you who don't know, GUI_Back_button change to /tr, not /tr GUI
Actually, already change this function since /tr player view is added.
Code (Java):
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"
- Added placeholder to check how many treasures was shown for the week
--
%luckytreasure_shown%
Reminder: Using /tr test command will not add the shown value.
- Added more messages can be translated
It could ignore this update just small things.
Message.yml should add the above content
Code (Java):
# 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"
- Added day placeholder for checking what day is it now for this plugin
--
%luckytreasure_day% - check the day
- Fixed the data.yml some coding
Day = 0 mean
Monday, Day = 6 mean
Sunday
Message.yml should add the above content
Code (Java):
Monday
:
"&cMonday"
Tuesday
:
"&6Tuesday"
Wednesday
:
"&eWednesday"
Thursday
:
"&aThursday"
Friday
:
"&bFriday"
Saturday
:
"&9Saturday"
Sunday
:
"&dSunday"
- Added two placeholder for checking the existing treasure and max treasure
--
%luckytreasure_exist% - check how many treasures is exisiting
--
%luckytreasure_maxtreasure% - check maximum treasures by week
- Added Message.yml one message of no existing treasure
- Fixed the issue of Y on world edit GUI can't type any message after set
Message.yml should add the above content
Code (Text):
# Placeholder
No_exist_treasure: "&7Don't have any treasure"
- Fixed exist GUI treasure still exists when disappearing
- Fixed the timer of exists treasure GUI (Small change)
- Added check treasure exist GUI
-- exist GUI update (change time and exist or not) per second
- Added tab-complete for /tr test
- Added auto-remove all treasure when stop server
- Added player view of main GUI
- Added type for command /tr test [type]
Change lore on Message.yml
Code (Java):
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"
Message.yml, you should add above new content
Code (Java):
# 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%time%"
-
"&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%time%"
-
"&7Range: &6%range%"
-
"&7World: &6%world%"
-
""
-
"&aLeft-Click teleport to the treasure"
-
"&bShift+Right-Click remove this treasure"
- Fixed the world GUI issues of Z
Nothing change in .yml
Low-version should be delayed, I'm a little bit tired.
- Added all settings in this plugin can be done in GUI
- Added command /tr can show up the main GUI
- Added command /tr when player execute will show Help_Message
- Fixed detect world is not the valid world, crash and spam the console
Message.yml Added
Code (Java):
# 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"
-
""
-
"&aClick to open the content view"
TR_treasure_item_name
:
"&6Treasure setting"
TR_treasure_item_lore
:
-
"&8Including commands and textures"
-
""
-
"&aClick to open the treasure setting"
# 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 gui"
-
"&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"
Config_treasure_particle_lore
:
-
"&8Control whether have particle"
-
"&8around the treasure"
-
"&7Status: %status%"
-
""
-
"&aClick to change the status"
Config_treasure_command_name
:
"&bTreasure Command"
Config_treasure_command_lore
:
-
"&8Control whether have execute commands"
-
"&8When open the treasure"
-
"&7Status: %status%"
-
""
-
"&aClick to change the 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"
world.yml default setting
Tresaure_X_lower: 0
Tresaure_Z_lower: 0
Treasure_X_lower: 0
Treasure_Z_lower: 0
- - oh my god, my world.yml typing the wrong name in the default
Please change the world.yml
Treausre_Y: 5
Tresaure_Y_Max: 100
Treasure_Y: 5
Treasure_Y_Max: 100
- Fixed Y-detection of treasure
Update the lower version later.
The last thing I would like to do is to create a GUI to control the setting.
- Added world.yml to control treasure for each world
- Removed config.yml for each world
- Added config can control treasure Y detection
- Changed the removed treasure or item button to Shift+Right Click
If you don't want to override your config.yml, you should add the content below.
Code (Java):
# Version
2.6 update
# Treasure Y detection
# Treasure Y Max means
if check the block Treasure_Y to Treasure_Y_Max still has space
#
If not, It will change other position to spawn treasure
Treasure_Y
:
5
Treasure_Y_Max
:
100
- Fixed the paper version support
If you don't get any errors, you could skip this update version.
Almost done with this plugin!
- Fixed player treasure content view can drop items in top inventory
-- but it still can't add into treasure (Just disappear the drop item)
- Fixed some world time tick check
- Added the message to let admins know today have treasure
- Added whether have random time treasure
If you don't want to override your config.yml, you should add the content below.
Code (Java):
# Version
2.4 update
# No random time treasure
Disable_random_treasure
:
false
If you don't want to override your treasure.yml, you should add the content below.
Code (Text):
# 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!"
- Fixed the back command enable error
Nothing changes on config.yml
- Fixed the checker make the command can't use random argument on /tr test
Nothing change on config.yml.
It's me again, it should be re-set the whole plugin?
Please give me some rate or comment for supporting this plugin
- Added treasure.yml / message.yml for clear to read
- Added custom model support
- Added now able to add the same type of item support
- Added some checker to check your command is available or not
Just delete the whole thing or back up your config.yml to other places.
Forget the remove a return argument.
- Fixed the /tr gui can't use the middle click and right click
Nothing change on config.yml.
Yes, is me again. Yo man, rate and comment!
- Added GUI custom almost all the treasure content
-- Including rename, add an item, remove an item, change chance or exp
- Added Player view and Admin view
- Removed the /tr gui itemList
If you don't want to override config.yml, you should add the above text in your config.yml.
Code (Java):
# Players can see the
/tr gui treasure down lore
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"
-
"&bRight-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"
-
"&bRight-Click to remove this item"
Yes, because I write this plugin by using paper API. I just fixed all kinds of things.
- Added a random argument for spawn directly treasure command
- Added all interact of treasure will set it to open
Nothing change on config.yml.
- Fixed some server crash bug
- Added texture of treasure
- Added particle of treasure
- Added the spawn treasure command (/tr test [worldName] [X] [Y] [Z] [Type])
- Added a message in /tr help
If you don't want to override config.yml, you should add the above text in your config.yml.
Code (Java):
# Version
1.7 update
Treasure_X_lower
:
0
Treasure_Z_lower
:
0
# Version
1.7 update
# Treasure texture
(base64
)
Treasure_texture
:
common
:
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMmJkZDYyZjI1ZjRhNDljYzQyZTA1NGEzZjIxMmMzZTAwOTIxMzgyOTkxNzJkN2Q4ZjNkNDM4MjE0Y2E5NzJhYyJ9fX0="
normal
:
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTZjNGFjMDA3MzZkODU1MWM4Y2VkNGNmNWQ4NTJjMDVmYjhmZGU3NDNkZWNhNmRhMzM0YzgxNTRiMmVlYzNmNyJ9fX0="
better
:
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODA0NTc0MzkxMGYyM2NlY2ZmMTAwOGFiNmFkZjc5N2Q4ZTYyOTdiMmE0M2M3MGRmNTcyZjJlODI0NTY5NzIzNyJ9fX0="
perfect
:
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTg1NTk0Yjc4ZThmYjNlM2JkN2NlM2NlMmJmYTk0ZjEzOGE5ZWJjMWJhZWQ2NzlhZWJmNWY2M2QxOTYxYzhkZSJ9fX0="
mystery
:
"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjdkZjM5OTFkOTE4Zjk1OTI0OGZjZjg0ZjE3YmI2NTJkMTJiN2Y4NjI5MWQ1MjIyN2MyNWU5MjlmMmU0YjRkZiJ9fX0="
# Version
1.7 update
# whether have particle effect
Treasure_particle
:
true
- Added a code for checking whether the treasure location is solid
- Added when player open treasure, the treasure location will set it to no treasure
I don't know, it may help. Someone mentioned that it still has a server crash bug. So I working on it. After that will start making treasure edit GUI.
Nothing change on config.yml.
Thanks,
Francesco99d for telling me those errors.
- Fixed server does not respond when spawning treasure
-- treasure now be able to check a position whether suitable to spawn
- Fixed the get treasure message placeholder hook to open player
- Fixed when world replace name added, when restart or reload will disappear
- Fixed the treasure location time
- Added the spawn treasure command (/tr test [worldName])
- Added help message and no permission message
- Added a message in /tr help
If you don't want to override config.yml, you should add the above text in your config.yml.
Code (Java):
# 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"
I know, update too much. It should be my last update before I sleep.
- Added a world replace the name in config.yml
For some of you who don't want to show up your world exactly name, you now can change the world name in config.yml.
Please rate me a 5 five star for keep updating this plugin!
If you don't want to override config.yml, you should add the above text in your config.yml.
Code (Java):
# Version
1.4 update
# world replaced name
World_name
:
world
:
"&asurivial world"
- Added detect world for some servers don't have world called 'world'
the detect world means what is the time of treasure come and the data.yml update
If you don't want to override config.yml, you should add the above text in your config.yml.
Code (Java):
# Treasure time detect world
# it may needs to restart server
Detect_world
: world
- Changed API version 17 to 16
If you are using version 1.17 spigot or paper, you can ignore this version update.
- Added some message support
placeholder
- Added getTreasure_message and Message now have a custom line, you can choose whether add more lines or not
If there have any bugs, feel free to ask me.
- Fixed an error in spigot.jar server can't open GUI
- Added a feature in GUI, now you can add %exp% to show treasure EXP
- Added a feature in Treasure, now you can add command in treasure
- Added a feature in Location, now it can have half neg location
- Added some boolean can control the treasure item or command
You can check the new config.yml, for each update will have #Version 1.1 update line
If you don't want to override the config.yml, you should add above text in your config.yml
Code (Java):
# Version
1.1 update
# chance to half neg location
(
default
:
20
%
->
0.2
)
Half_Neg_location
:
0.2
# Version
1.1 update
# Enable treasure commands
Treasure_command_enable
:
false
# Version
1.1 update
# Command that when treasure is opened
(
%player
% as open player name
)
Treasure_command
:
common
:
- money give
%player
%
1
normal
:
- money give
%player
%
1
better
:
- money give
%player
%
1
perfect
:
- money give
%player
%
1
mystery
:
- money give
%player
%
1
#example_treasure
:
#
- money give
%player
%
1
# Version
1.1 update
# whether have those item above
Treasure_item_enable
:
true