1. Wiki
  2. /实体
  3. /minecraft:tick_world

minecraft:tick_world

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:tick_world。Get GodCraft

概览

minecraft:tick_world 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体周围的区块保持加载和运行,即使附近没有玩家。请谨慎使用,因为会影响性能。

字段

字段类型默认值说明
radiusinteger2实体周围保持活跃的区块数。范围:2 到 6
distance_to_playersnumber128玩家必须在多近以内实体才会保留;更远时它可能消失。never_despawn 为 true 时忽略此项。范围:128 到 …
never_despawnbooleantrue为 true 时,无论玩家多远,实体都会留在世界中。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:tick_world": {
    "radius": 2,
    "distance_to_players": 128,
    "never_despawn": true
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more