SweepRob

A small module for "sweeping the floor" of servers: regularly clean up fallen objects, put the scanned items in the trash can, and retrieve them when needed.
Back to Files

sweep_rob-1.1.0.jar

File namesweep_rob-1.1.0.jar
Uploaded
Dec 5, 2026
Downloads
8
Size
67.0 KB
Mod Loaders
NeoForge
File ID
10051243
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:sweeprob-1840314:10051243"

Learn more about Curse Maven

What's new

Minecraft 1.21.1 · NeoForge 21.1.248+ · sweep_rob-1.1.0.jar

中文

新增

计时基准可切换

  • /sweeprob timer tick [秒]:按游戏刻计数,/tick 加速时倒计时同步加速(原行为)。
  • /sweeprob timer <星球> [秒]:按现实时间计数,输入的是「当地秒」,按自转周期换算成现实秒。
  • 可用参数:earth mars moon mercury venus jupiter saturn uranus neptune,也可直接写中文名。
  • 换算比例 = 自转周期 ÷ 24 小时:地球 1、火星 1.0260、木星 0.4135、月球 27.3183、金星 243.0208 等;例 /sweeprob timer mars 3600 ≈ 现实 3699 秒。
  • 换算后超过 1 个地球日时,聊天栏追加彩蛋提示「≈ N 个地球日,下个世纪见」。

计时设置写入配置

  • sweep_rob-common.toml 新增 timerMode;intervalSeconds 改为按 timerMode 的当地秒计。
  • /sweeprob timer 改完立即写回配置文件,控制台/手改文件同样生效;配置注释里带完整星球参数表。
  • /sweeprob timer 查看当前参数与换算,/sweeprob timer interval <秒> 只改间隔。
  • 修改立即生效并重置当前倒计时,无需重启。

语气库新增 timerSet

  • 计时设置完成后追加一句提示,四套语气各有文案,$1 = 换算后的地球秒数,例如「当前设置的间隔换算后约为 3699 地球秒」。

修复

  • 修复使用 /tick 加速游戏时清扫频率失控的问题:现实时间模式下倒计时按 System.currentTimeMillis() 计算,不受 tick 加速影响。

变更

  • 默认计时基准改为 earth(现实时间);需要原来的游戏刻行为可设 timerMode = "tick"。
  • 手动 /sweeprob clean on 的 10 秒倒计时始终按现实秒计算。

已知限制

  • 手改配置文件依赖 NeoForge 自动重载,通常数秒内生效但不保证;用命令修改是确定的即时生效。
  • tick 模式下加速依旧会加速倒计时(这是该模式的预期行为)。

兼容

  • 旧存档、旧的 1.0.0 配置可直接使用;新增配置项会以默认值补齐。
  • 与数据能源学联动、垃圾桶界面、语气系统行为不变。

English

Added

Switchable timer basis

  • /sweeprob timer tick [seconds] — counts game ticks; /tick acceleration speeds up the countdown (original behaviour).
  • /sweeprob timer <planet> [seconds] — counts wall-clock time; the input is "local seconds", converted to real seconds by rotation period.
  • Available: earth mars moon mercury venus jupiter saturn uranus neptune.
  • Conversion factor = rotation period ÷ 24 h: Earth 1, Mars 1.0260, Jupiter 0.4135, Moon 27.3183, Venus 243.0208, etc. Example: /sweeprob timer mars 3600 ≈ 3699 real seconds.
  • When the converted interval exceeds one Earth day, an extra "≈ N Earth days, see you next century" line is shown.

Timer settings live in the config

  • New timerMode option; intervalSeconds is now interpreted in the selected planet's local seconds.
  • /sweeprob timer writes changes straight back to the config file; manual edits also apply. The config comments include the full planet table.
  • /sweeprob timer shows the current settings and conversion; /sweeprob timer interval <seconds> changes only the interval.
  • Changes apply immediately and reset the running countdown — no restart needed.

New timerSet tone category

  • After a timer command, a tone-flavoured line is appended (per-tone text, $1 = converted Earth seconds), e.g. "当前设置的间隔换算后约为 3699 地球秒".

Fixed

  • Runaway sweeping under /tick acceleration: in wall-clock mode the countdown uses System.currentTimeMillis() and ignores tick acceleration.

Changed

  • Default timer basis is now earth (wall-clock); set timerMode = "tick" to restore the old behaviour.
  • The manual /sweeprob clean on 10-second countdown always uses real seconds.

Known limitations

  • Hand-edited config files rely on NeoForge auto-reload (usually within seconds, not guaranteed); commands apply immediately and deterministically.
  • In tick mode acceleration still speeds up the countdown by design.

Compatibility

  • Existing worlds and 1.0.0 configs keep working; new options are filled with defaults.
  • Data Energistics integration, the dustbin screen and the tone system are unchanged.

This mod has no additional files