更新3.4API
This commit is contained in:
@@ -713,7 +713,7 @@ method in mod.server.component.gameCompServer.GameComponentServer
|
||||
|
||||
- 备注
|
||||
- 注意,如果检测的实体所在的区块被卸载,则该接口返回False。因此,需要注意实体所在的区块是否被加载。
|
||||
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://minecraft-zh.gamepedia.com/%E5%8C%BA%E5%9D%97)
|
||||
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://zh.minecraft.wiki/w/%E5%8C%BA%E5%9D%97)
|
||||
|
||||
- 示例
|
||||
|
||||
@@ -748,7 +748,7 @@ method in mod.client.component.gameCompClient.GameComponentClient
|
||||
|
||||
- 备注
|
||||
- 注意,如果检测的实体所在的区块被卸载,则该接口返回False。因此,需要注意实体所在的区块是否被加载。
|
||||
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://minecraft-zh.gamepedia.com/%E5%8C%BA%E5%9D%97)
|
||||
- 区块卸载:游戏只会加载玩家周围的区块,玩家移动到别的区域时,原来所在区域的区块会被卸载,参考[区块介绍](https://zh.minecraft.wiki/w/%E5%8C%BA%E5%9D%97)
|
||||
|
||||
- 示例
|
||||
|
||||
@@ -886,9 +886,10 @@ method in mod.server.component.blockInfoCompServer.BlockInfoComponentServer
|
||||
| pos | tuple(int,int,int) | 掉落位置 |
|
||||
| aux | int | 方块的附加值 |
|
||||
| probability | float | 掉落概率,范围为[0, 1],0为不掉落,1为100%掉落 |
|
||||
| bonusLootLevel | int | [时运等级](https://minecraft-zh.gamepedia.com/时运),默认为0 |
|
||||
| bonusLootLevel | int | [时运等级](https://zh.minecraft.wiki/w/时运),默认为0 |
|
||||
| dimensionId | int | 掉落方块的维度,默认值为-1,传入非负值时用于获取产生方块掉落的维度;否则将随机挑选一个存在玩家的维度产生掉落 |
|
||||
| allowRandomness | bool | 是否允许随机采集,默认为True,如果为False,掉落概率probability无效 |
|
||||
| spawnOrb | bool | 是否生成经验球,默认都不生成,设成True时按原版采集逻辑进行经验球掉落,如矿石类方块会产生随机数量的经验球 |
|
||||
|
||||
- 返回值
|
||||
|
||||
|
||||
Reference in New Issue
Block a user