Cobblemon TP-Pastures(牧场方块不会消失)

Cobblemon TP-Pastures(牧场方块不会消失)

宝可梦牧场召回/传送修改

装饰

Cobblemon TP-Pastures

防止牧场中的宝可梦因走得过远而被收回至 PC。取而代之的是,它们会被传送回其牧场方块附近。

该模组包含可配置的传送半径、安全落点检测、坠落伤害保护、可选的牧场宝可梦完全伤害免疫,以及调试通知。适用于 Minecraft 1.21.1 的 Fabric 和 NeoForge。

服务端

该模组在单人游戏和多人游戏中均可运行。

对于多人服务器,这是一个服务端模组,因此只需安装在服务端。请下载与你服务器模组加载器相匹配的 Fabric 或 NeoForge 版本。

为什么要使用它?

  • 防止你的牧场方块因为宝可梦走得太远而突然变得几乎空空如也。
  • 无需再用栅栏把宝可梦围起来以防它们被收回。
  • 保护宝可梦免于因被传送回牧场方块而受到的坠落伤害。
  • 可选择让所有分配到牧场方块的宝可梦完全免疫伤害。
  • 改善与 Cobbleworkers 的兼容性,使其运行更可靠。
  • 让你可以更自由地将牧场宝可梦用于装饰、动物园、野生动物园、农场以及类似的建筑。

你可能还想使用 Cobblemon: SafePastures,它可以保护你的宝可梦免受伤害。 SafePastures 不再需要用于伤害保护,因为 TP-Pastures 现在包含了一个 invulnerablePasturedPokemon 选项。如果你希望分配到牧场方块的宝可梦完全免疫伤害,请启用该选项。

Cobblemon 1.8.0 尝试解决牧场宝可梦消失或逃跑的问题,但宝可梦在离开允许区域后仍可能被收回至 PC。因此 TP-Pastures 仍然有用/必要来防止这种情况。

依赖项

所有版本都需要:

Fabric 版本:

NeoForge 版本:

配置

配置文件位于:

...\config\cobblemon_tp_pastures.json

为使该模组正常工作,maxPastureRadius 必须设置得低于 Cobblemon 自身的 pastureMaxWanderDistance 值。

Cobblemon 的值通常位于:

...\config\cobblemon\main.json

Cobblemon 1.8.0 将默认的 pastureMaxWanderDistance 从 64 改为 32。因此,TP-Pastures 现在默认使用 maxPastureRadius: 28。

从旧版本更新

更新模组时,现有配置文件会被保留。如果你的配置中仍然包含 maxPastureRadius: 54,当使用 Cobblemon 新的默认半径 32 时,你应该手动将其改为 28。

使用更大的牧场半径

如果你希望宝可梦的活动范围超过 32 格,则必须同时增大两个值:

  • Cobblemon 配置中的 pastureMaxWanderDistance
  • TP-Pastures 配置中的 maxPastureRadius

始终让 TP-Pastures 的 maxPastureRadius 低于 Cobblemon 的 pastureMaxWanderDistance。

例如,要再次使用之前 Cobblemon 的距离,你可以配置:

  • Cobblemon:pastureMaxWanderDistance: 64
  • TP-Pastures:maxPastureRadius: 54

整合包的重要说明

某些整合包会修改 Cobblemon 的 pastureMaxWanderDistance。

如果你的整合包修改了该值,请确保 TP-Pastures 的 maxPastureRadius 仍然低于它。否则,Cobblemon 可能会在 TP-Pastures 来得及将其传送回来之前就收回宝可梦。

默认配置

{
  "_maxPastureRadius_info": "Max roam distance in blocks from the pasture block center before a Pokémon is teleported back. Measured horizontally by default (see useHorizontalDistanceOnly). Default: 28 (For best results make sure it is slightly lower than \"pastureMaxWanderDistance\" from Cobblemon's config).",
  "maxPastureRadius": 28,
  "_useHorizontalDistanceOnly_info": "If true, only horizontal (X/Z) distance is checked, ignoring height. Good for pastures near cliffs or multi-level farms. If false, full 3D sphere distance is used. Default: false.",
  "useHorizontalDistanceOnly": false,
  "_candidateTeleportAttempts_info": "How many random positions around the pasture block are tried when searching for a safe landing spot (solid ground + clear headroom). Higher values reduce the chance of landing inside a block, at a tiny performance cost. Default: 24.",
  "candidateTeleportAttempts": 24,
  "_fallbackYOffset_info": "If no safe position is found after candidateTeleportAttempts tries, the Pokémon is placed this many blocks directly above the pasture block as a last resort. Default: 1.5.",
  "fallbackYOffset": 1.5,
  "_debugLogging_info": "If true, nearby players see a chat message whenever a Pokémon is teleported back (e.g. 'Pikachu left tether box → (x, y, z)'). Default: false.",
  "debugLogging": false,
  "_serverLogging_info": "If true, teleport events are written to the server log. Disable this if the log spam is unwanted. Default: false.",
  "serverLogging": false,
  "_preventTeleportFallDamage_info": "If true, a Pokémon teleported back by TP-Pastures takes no fall damage from that teleport. Protection lasts until it lands. Default: true.",
  "preventTeleportFallDamage": true,
  "_invulnerablePasturedPokemon_info": "If true, Pokémon currently assigned to a Pasture Block cannot take any damage. Default: false.",
  "invulnerablePasturedPokemon": false
}

支持 / 错误报告

我目前没有使用专门的平台来提供支持或报告错误。 如果你需要帮助或想报告问题,可以在 Discord 上联系我: @datibrr