介绍

A watched pot never boils. A watched furnace never… ticks?
A Watched Pot is a fully configurable mod for both Neoforge/Forge and Fabric/Quilt that either stops blocks from ticking when they’re looked at or restricts them to only tick when they are looked at, based on a block tag.
Requires Fabric API on Fabric/Quilt.
Usage
On Forge, A Watched Pot can be configured through Forge’s normal server configuration systems. There are currently two configuration options:
- The mod can use either a whitelist or a blacklist, which can be toggled via the
use_whitelistoption. If the option is enabled, only blocks in thewatchedpot:whitelistblock tag will be affected. If it’s disabled (which it is by default), all blocks will be affected except those in thewatchedpot:blacklisttag. - The mod’s behavior can be inverted via the
invert_behavioroption. If enabled, only blocks that are looked at will tick (of those affected); if disabled, all blocks will tick unless they are looked at.
By default, both options are set to false – that is, no block will tick while a player is looking at it.
To recap:
use_whitelist=true, invert_behavior=false– blocks in the whitelist tag will not tick if they are looked at; all other blocks remain unchanged.use_whitelist=false, invert_behavior=false– all blocks will not tick if they are looked at, unless they are in the blacklist tag (in which case they remain unchanged).use_whitelist=true, invert_behavior=true– blocks in the whitelist tag will only tick if they are looked at; all other blocks remain unchanged.use_whitelist=false, invert_behavior=true– all blocks will only tick if they are looked at, unless they are in the blacklist tag (in which case, again, they remain unchanged).
On Fabric, the same options can be set via gamerules (watchedpot_useWhitelist and watchedpot_invertBehavior) to avoid an extra config dependency. This is unfortunately not quite as robust but it keeps the mod lightweight on both platforms. If you need to set default values (such as for a modpack) you can emulate that behavior with a KubeJS server_script, like so:
// For 1.18.2 change the line below to onEvent('server.load', event => {
ServerEvents.loaded(event => {
if (event.server.persistentData.gameRules) return
event.server.gameRules.set("watchedpot_useWhitelist", true)
event.server.gameRules.set("watchedpot_invertBehavior", false)
event.server.persistentData.gameRules = true
})
You can also use datapacks to achieve the same effect with a .mcfunction running the /gamerule command. See the Minecraft Wiki) for information on that.
常见问题
A Watched Pot 支持哪些 Minecraft 版本?
A Watched Pot 支持 Minecraft Java 版 1.18.2–1.21.4,共 7 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
A Watched Pot 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
ChiefArug 的其他作品
查看全部 →Thermal Systeams
Thermal Series 的附属模组,为其加入蒸汽!包含锅炉、能量炉等更多内容!
Thermaloot
Add random Thermal Augments to loot chests. From Sad Capacitors to Huge Sentient Capacitors of Wonder, they are all yours!
Mixin Extras NeoForge on Forge Fix
Fixes the problem of some mods including the NeoForge version of MixinExtras on Forge
Kindled
Spooky scary pumpkins that can be farmed for resources!
评论
登录后评论和评分