|自定义附魔||喷火 · 钻孔 · 星陨 · 精英锋利 · 精英保护 · 致命打击 · 破冰|
Treasure Chests are a feature allows admins to design chests that can either drop loot or spawn a mimic boss.
isEnableddetermines whether your Treasure Chest will show up in your world.
chestType determines the type of chest your Treasure Chest is in terms of Minecraft block. The valid values are:
CHEST TRAPPED_CHEST ENDER_CHEST SHULKER_BOX
facing Determines the cardinal direction your chest face will be facing. The valid directions are:
NORTH SOUTH EAST WEST
dropStyledetermines the style of drop the Treasure Chest can have. Treasure Chests meant to be opened only once in a while by a person at a time should have the value
single. Chests that are meant to be encountered by groups of players and where all players should have a shot at opening the chest should have the
restockTimer sets the interval of time, in minutes, after opening a chest before the chest is able to be opened again. For
singledrop style chests, this will make the Treasure Chest reappear after this set amount of time. For the
groupdrop style, it will simply allow players to open the chest once again.
lootList sets the list of loot that can be found in the Treasure Chest. This format works based on a weight system and only one item can drop per time the chest is opened. As an example:
lootList: - magmaguys_toothpick.yml:1 - magmaguys_shield.yml:2
In the example above, either item can drop, but not both.
magmaguys_shield.ymlhas a weight of
2which means it's 2x more likely to drop compared to
magmaguys_toothpick which has a weight of
mimicChance determines the odds that the chest will spawn a Custom Boss instead of treasure. Valid values are between
0.5 is 50%.
mimicCustomBossesList is a list of custom bosses that may spawn from the Treasure Chest. Only one may spawn, and it is picked at random from the list.
effects is the list of visual effects that the Treasure Chest may have.
location is the location the Treasure Chest will spawn at. It follows this format:
worldName,x,y,z,pitch,yaw. Since chests have no pitch or yaw, you can set both of these values to 0.