- 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