• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

EliteMobs/创建宝箱:修订间差异

来自Minecraft插件百科
跳转到导航 跳转到搜索
(创建页面,内容为“{{模板:ELBox}} Treasure Chests are a feature allows admins to design chests that can either drop loot or spawn a mimic boss. = isEnabled = <code>isEnabled</code>d…”)
 
无编辑摘要
 
第1行: 第1行:
{{模板:ELBox}}
{{模板:ELBox}}
Treasure Chests are a feature allows admins to design chests that can either drop loot or spawn a mimic boss.
宝箱可用于存储战利品或生成宝箱怪。


= isEnabled =
= isEnabled =
<code>isEnabled</code>determines whether your Treasure Chest will show up in your world.
<code>isEnabled</code>决定是否在该世界生成宝箱。


= chestType =
= chestType =
<code>chestType</code> determines the type of chest your Treasure Chest is in terms of Minecraft block. The valid values are:
<code>chestType</code>决定宝箱类型,有效的类型为:
  <code>CHEST
  <code>CHEST|普通箱子
  TRAPPED_CHEST
  TRAPPED_CHEST|陷阱箱
  ENDER_CHEST
  ENDER_CHEST|末影箱
  SHULKER_BOX</code>
  SHULKER_BOX|潜影盒</code>


= facing =
= facing =
<code>facing</code> Determines the cardinal direction your chest face will be facing. The valid directions are:
<code>facing</code>决定宝箱朝向。有效朝向为:
  <code>NORTH
  <code>NORTH|北
  SOUTH
  SOUTH|南
  EAST
  EAST|东
  WEST</code>
  WEST|西</code>


= dropStyle =
= dropStyle =
<code>dropStyle</code>determines 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 <code>single</code>. 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 <code>group</code>drop style.
<code>dropStyle</code>决定宝箱的掉落风格。设置为<code>single</code>则玩家只能打开一次该宝箱。如果有多名玩家要打开宝箱则应设置为<code>group</code>


= restockTimer =
= restockTimer =
<code>restockTimer</code> sets the interval of time, in minutes, after opening a chest before the chest is able to be opened again. For <code>single</code>drop style chests, this will make the Treasure Chest reappear after this set amount of time. For the <code>group</code>drop style, it will simply allow players to open the chest once again.
<code>restockTimer</code>以分钟为单位设置时间间隔,多久后才能再次打开宝箱。对于<code>single</code>掉落风格的宝箱,该数值会使宝箱在该间隔后重新出现。对于<code>group</code>掉落风格,则玩家可在间隔过后再次打开宝箱。


= lootList =
= lootList =
<code>lootList</code> 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:
<code>lootList</code>设置宝箱里会出现的战利品。格式基于权重系统,每次打开宝箱只会出现一个战利品。示例如下:
  <code>lootList:
  <code>lootList:
  - magmaguys_toothpick.yml:1
  - magmaguys_toothpick.yml:1
  - magmaguys_shield.yml:2</code>
  - magmaguys_shield.yml:2</code>
In the example above, either item can drop, but not both. <code>magmaguys_shield.yml</code>has a weight of <code>2</code>which means it's 2x more likely to drop compared to <code>magmaguys_toothpick</code> which has a weight of <code>1</code>.
在上面的示例中,只有两者之一会掉落。<code>magmaguys_shield.yml</code>的权重是<code>2</code><code>magmaguys_toothpick</code>的两倍。


= mimicChance =
= mimicChance =
<code>mimicChance</code> determines the odds that the chest will spawn a Custom Boss instead of treasure. Valid values are between <code>0</code> and <code>1</code>, where <code>0.5</code> is 50%.
<code>mimicChance</code>决定生成自定义Boss的几率。有效数值介于<code>0</code>-<code>1</code>之间。<code>0.5</code>代表50%


= mimicCustomBossesList =
= mimicCustomBossesList =
<code>mimicCustomBossesList</code> 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.
<code>mimicCustomBossesList</code>为会生成的自定义Boss列表。只会随机生成列表中的一个自定义Boss。


= effects =
= effects =
<code>effects</code> is the list of visual effects that the Treasure Chest may have.
<code>effects</code>是宝箱的可视效果。


= location =
= location =
<code>location</code> is the location the Treasure Chest will spawn at. It follows this format: <code>worldName,x,y,z,pitch,yaw</code>. Since chests have no pitch or yaw, you can set both of these values to 0.
<code>location</code>是宝箱生成的位置。遵循如下格式:<code>世界名,x,y,z,pitch,yaw</code>。因为箱子没有pitch或yaw,所以你可以将这两个值都设置为0。

2020年8月14日 (五) 09:58的最新版本

宝箱可用于存储战利品或生成宝箱怪。

isEnabled

isEnabled决定是否在该世界生成宝箱。

chestType

chestType决定宝箱类型,有效的类型为:

CHEST|普通箱子
TRAPPED_CHEST|陷阱箱
ENDER_CHEST|末影箱
SHULKER_BOX|潜影盒

facing

facing决定宝箱朝向。有效朝向为:

NORTH|北
SOUTH|南
EAST|东
WEST|西

dropStyle

dropStyle决定宝箱的掉落风格。设置为single则玩家只能打开一次该宝箱。如果有多名玩家要打开宝箱则应设置为group

restockTimer

restockTimer以分钟为单位设置时间间隔,多久后才能再次打开宝箱。对于single掉落风格的宝箱,该数值会使宝箱在该间隔后重新出现。对于group掉落风格,则玩家可在间隔过后再次打开宝箱。

lootList

lootList设置宝箱里会出现的战利品。格式基于权重系统,每次打开宝箱只会出现一个战利品。示例如下:

lootList:
- magmaguys_toothpick.yml:1
- magmaguys_shield.yml:2

在上面的示例中,只有两者之一会掉落。magmaguys_shield.yml的权重是2magmaguys_toothpick的两倍。

mimicChance

mimicChance决定生成自定义Boss的几率。有效数值介于0-1之间。0.5代表50%。

mimicCustomBossesList

mimicCustomBossesList为会生成的自定义Boss列表。只会随机生成列表中的一个自定义Boss。

effects

effects是宝箱的可视效果。

location

location是宝箱生成的位置。遵循如下格式:世界名,x,y,z,pitch,yaw。因为箱子没有pitch或yaw,所以你可以将这两个值都设置为0。