
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, with filtering available via block tags.
On Forge, A Watched Pot can be configured through Forge's normal server configuration systems. There are currently two configuration options:
By default, both options are set to false - that is, no block will tick while a player is looking at it.
To recap:
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.