- 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"