Item Milestone Log 1.2.0 (MC 26.2)
Curse Maven Snippet
What's new
New Commands
- Tag targets: Added
/milestonelog addtag <tag> [<count>],/milestonelog removetag <tag> [<count>],/milestonelog resettag <tag> [<count>],/milestonelog firsts resettag <tag> [<count>],/milestonelog admin <player> resettag <tag> [<count>], and/milestonelog toptag <tag> [<count>]. Tags are written without the leading#in commands, but as#namespace:pathindefaultTargets, presets, and exports; possession of all items in the tag is summed. - Item info: Added
/milestonelog info <item> [<count>]and/milestonelog info hand(player only). Shows your target/record status, the world-first holder and time, how many players recorded the item and your rank (whenallowLookuppermits it), and related tag targets. - Item ID renaming: Added OP
/milestonelog renameitem <oldId> <newId> [confirm]to move targets, records,progressNotified,carriedFromCreative, and world-firsts from an old item ID to a new registered item. Withoutconfirmit only previews; it writes a backup first and never editsdefaultTargetsor preset files. - Discord webhook test target: Added
/milestonelog discordtest worldfirstto test the separate world-first webhook.
Targets, Detection & Display
- Item tag targets: Tag targets work with quantity targets, progress alerts, world-firsts, presets,
defaultTargets, command execution, scoreboard counts, and export/import. Names use NeoForge tag translations where available, falling back to#namespace:path; the GUI resolves the first item in the tag as its icon. Tag targets cannot be added from the GUI item picker, but can be viewed, removed, and reset there. 1.0.1/1.1.0 clients simply do not show tag entries in the GUI. - Chat item hover (enabled by default,
chatItemHover): Item names in the mod's chat messages now show the item on hover (show_item). The text itself is unchanged. - Item tooltip status (enabled by default,
itemTooltipStatus): On modded clients, item tooltips gain up to three gray lines showing whether the item (or one of its tag targets) is a target or already recorded, including playtime. - Localized playtime and Day formatting (default behavior change): Chat and GUI now format playtime and Day/date through the player's language (e.g. 「27時間03分05秒(5日目、2026-11-23)」). English output is unchanged. Discord, server logs, exports, and the API deliberately keep the English format.
- GUI world-first mark (enabled by default,
guiWorldFirstMark): Recorded rows show✔ ★ …when you hold the world first. The extra sync payload is only sent to 1.2.0+ clients; 1.0.1/1.1.0 clients keep the old display. - Scoreboard integration (F17): Optional
scoreboardObjectiveandscoreboardWorldFirstObjectivemirror each player's record count and world-first count to vanilla scoreboard objectives, updated on records, resets, imports, renames, and login. - Login world-first summary (F52): Optional
loginWorldFirstSummarylists up to five world-firsts recorded while you were away, with a remaining count. - Hovered-item key (F41): A new, unbound-by-default key lets you add the item under the mouse cursor as a target from inventory/container screens.
- Advancement trigger (F2): Datapacks can use the
itemmilestonelog:milestone_recordedtrigger withplayer,item,count, andworld_firstconditions. Existing records are replayed on login and/reload; resets do not revoke advancements. infocommand (F51): See a single item's personal status, world first, recorder count/rank, and related tag targets without opening the GUI.- Milestone command execution (F7): Optional
milestoneCommandruns a server command when a milestone is recorded, with%player%,%uuid%,%item%,%count%,%playtime%, and%worldfirst%placeholders; usefunction <namespace>:<path>for multiple commands.
Data, Safety & Administration
- Automatic world-data backups (enabled by default,
autoBackupEnabled):MilestoneDatais written to<world>/itemmilestonelog/backups/milestones-YYYYMMDD-HHmmss.daton world save (at most once per hour) and on server stop, keepingautoBackupGenerationsfiles (default 5). Backups can be restored manually by stopping the server and copying the chosen file back over the real data file. - Datapack presets (F21): Presets can be shipped in
data/<namespace>/itemmilestonelog/presets/<id>.jsonand are read on/reload. Precedence is built-in > config folder > datapack; datapack presets are read-only andpreset reloadonly re-reads the config folder. - Per-language preset names (F54): A preset's
namemay be an object such as{"en_us": "Starter Kit", "ja_jp": "スターターキット"}; each viewer gets their language, thenen_us, then the first entry, then the preset ID. - Permission nodes (F43): NeoForge permission nodes can grant individual admin commands to non-OP staff (
itemmilestonelog.admin,firsts.reset,export.all,import.all,prunedata,renameitem,discordtest,presets.manage,viewhidden). Nodes can add access but cannot take OP access away. - NeoForge config screen (F44): The mod list's Config screen now edits all settings except the two webhook URLs.
- API tag support:
TargetKey.isTag()and tag-awareItemMilestoneLogApihelpers;getItemId()can return a#tag ID, so checkisTag()before parsing it as an item ID.
Discord Improvements
- Weekly digest (F9): Optional
discordDigestEnabledsends a periodic summary of new records and world-firsts usingdiscordDigestIntervalDays(default 7, range 1–30). The first run only records the current time; the digest does not resend a delivery that failed with HTTP 429 and followsdiscordNotifyScope. - Separate world-first webhook (F46):
discordWorldFirstWebhookUrlsends world-first posts there only, while records, preset completions, and digests usediscordWebhookUrl. Either URL can useenv:VAR_NAME. - Silent record posts (F53):
discordSilentRecordsadds Discord'sSUPPRESS_NOTIFICATIONSflag (flags: 4096) to normal record posts and grouped posts without a world first; world-first posts, preset completions, digests, and tests still notify. - World-first webhook test (F49):
/milestonelog discordtest worldfirstverifies the second URL without printing it.
Compatibility & Downgrade Notes
- Fully backward-compatible with 1.0.1 and 1.1.0 worlds and network-compatible with 1.0.1/1.1.0 clients and servers. Tag entries are invisible to 1.0.1/1.1.0 clients but do not disconnect them.
- Downgrading from 1.2.0 to 1.1.0 or 1.0.1: older versions do not read tag targets/records/world-firsts or the new
lastDigestEpochfield, so tag-target data andlastDigestEpochare dropped on the next save. Make a backup (or use the automatic 1.2.0 backups) before downgrading. Downgrading from 1.1.0 to 1.0.1 additionally drops the 1.1.0 per-player fields described below. - New defaults worth noting: automatic backups, chat item hover, GUI world-first marks, item tooltip status, and localized playtime/Day formatting are on by default; the weekly digest, login summary, scoreboard objectives, silent Discord posts, and
milestoneCommandare off until configured.
Also included: all changes from 1.1.0
Version 1.1.0 was completed but never published on its own. This 1.2.0 release is the first public release after 1.0.1 and includes every 1.1.0 change listed below.
New Commands
- Lookup, rankings & server stats: Added
/milestonelog lookup <player> [<page>],/milestonelog top [<item> [<count>]],/milestonelog recent [<n>](1–20, default 10), and/milestonelog stats(controlled byallowLookup, defaulttrue; whenfalse, restricted to OPs and the singleplayer/LAN host, while looking up yourself always works). - Privacy & notification opt-outs: Added
/milestonelog privacyto hide your milestones from non-privileged players inlookup,top,recent, andstats;/milestonelog muteprogressto mute quantity-target progress alerts; and/milestonelog discordoptoutto exclude your milestones from Discord webhooks (allowDiscordOptOut, defaulttrue). - Preset progress, bulk target removal & undo: Added
/milestonelog presetprogress <name>,/milestonelog presetremove <name>,/milestonelog removeall, and/milestonelog undo(restores your last personalreset,resetall, GUI reset,presetremove, orremoveallwithin 10 minutes). - Pagination, filtering & help: Added optional
[<page>]pagination (15 entries per page with clickable[< Prev]/[Next >]buttons) tolist,targets(plustargets pending/targets done),firsts,lookup,admin players, andadmin <player> list|targets; added/milestonelog help [<subcommand>]showing only commands available to the caller with clickable suggestions. - HTML & CSV exports, full import & world-first preservation: Added
/milestonelog exporthtml/exporthtmlall(standalone single-file HTML summary),/milestonelog exportcsv/exportcsvall(UTF-8 BOM, RFC 4180, formula-injection safe), and OP/milestonelog importall <fileName>.exportallnow includesworldFirsts, whichimportallrestores and merges (earlier known timestamp wins). - OP admin & maintenance commands: Added
/milestonelog admin <player> add|remove|preset|grant(grantrecords a milestone for an online player without checking inventory or creating world-firsts),/milestonelog prunedata <days> [confirm](cleans up offline players with no records, personal targets, creative-carried items, or non-default preferences using trackedlastSeentimestamps), and/milestonelog discordtest(sends a test message and reports the HTTP result without exposing the webhook URL).
Notifications, Display & Configuration
- Quantity-target progress alerts (enabled by default): Sends a personal chat alert when a quantity target crosses configured possession thresholds (
progressAlerts, defaulttrue;progressAlertThresholds, default[50, 90];progressAlertMinCount, default10). Uses a baseline on first evaluation so existing inventory does not spam alerts; opt out anytime with/milestonelog muteprogress. - Simultaneous notification grouping (default behavior change): Added
groupSimultaneousRecords(defaulttrue). When 3 or more milestones are recorded for the same player in the same tick, chat messages, broadcasts, world-first announcements, and Discord posts are grouped into a single message per channel (sound plays once per tick). Set tofalseto restore 1.0.1 per-record messages. - Creative/spectator carry notices (enabled by default): When
ignoreCreativeAndSpectatoris enabled, leaving Creative or Spectator mode while holding untracked target items now notifies you in chat, marks affected entries in/milestonelog targetswith(carried from creative), and shows a paused-recording notice in/milestonelog. - Current player names in
/milestonelog firsts(enabled by default): World-first entries now display each holder's current known name, formatted as<current name> (was <old name>)after a rename. Stored world-first records, exports, andWorldFirstRecord.playerNamekeep the original name; rename history infirstsis not covered by/milestonelog privacy. - Preset completion & starter presets: Added preset-completion detection and announcements (
announcePresetCompletion, defaultfalse) andfirstJoinPresets(default empty) to automatically grant removable personal targets to new players on first join. - Display timezone & feature switches: Added
displayTimeZone(default""= server default) for server-formatted dates in chat, logs, Discord, and exports (client GUI continues to use the player's local timezone), plus top-level switchespresetsEnabled,exportImportEnabled, andworldFirstEnabled(all defaulttrue).
Discord Improvements
- Rich embeds & language: Added
discordUseEmbeds(defaultfalse) with Markdown escaping and Discord field length clamping,discordLanguage(default"en_us", supports"ja_jp"), anddiscordNotifyPresetCompletion(defaultfalse). - Secret-safe
env:URLs:discordWebhookUrlnow acceptsenv:VAR_NAMEto read the URL from an environment variable; logs a one-time reminder in singleplayer/LAN that the config file is shared across worlds. - Delivery resilience: Retries HTTP 429 once when
Retry-Afteris 5 seconds or less, and pauses delivery after HTTP 401/404 with a single warning until the resolved webhook URL changes or/milestonelog discordtestsucceeds.
Public Server API
- Events: Added
PresetCompletedEvent,MilestoneRecordedEvent#isWorldFirst(), andMilestoneRecordedEvent#getCause()withRecordCause(GAMEPLAY,API,ADMIN_GRANT). - Write helpers: Added server-thread
ItemMilestoneLogApi.addTarget,removeTarget, andrecordNow(with nesting depth limit 16 and automatic GUI re-sync).
Fixes & Internal Improvements
- LAN preset permissions: Fixed LAN guests without cheats being able to save, delete, or reload the host's presets by unifying privilege checks across commands and GUI.
- Preset overwrite safety: Overwriting a custom preset now preserves its JSON
namedisplay field instead of replacing it with the ID; the GUI Save Preset screen now indicates when saving will overwrite an existing custom preset and disables saving over built-in preset IDs. - Pickup fast-path & translation tooling: Skipped unnecessary inventory counting on item pickups that do not match untracked targets or creative-carried items; simplified adding community translations via
ServerLang.BUNDLED_LANGUAGESwith automated test coverage.
Compatibility & Downgrade Notes
- Fully backward-compatible with 1.0.0 and 1.0.1 worlds (including 1.21.1 → 26.x migration) and network-compatible with 1.0.1 clients/servers.
- Downgrading from 1.1.0 to 1.0.1: 1.0.1 ignores the new per-player fields (
progressNotified,completedPresets,hideFromLookup,muteProgressAlerts,lastSeen,excludeFromDiscord) and drops them on the next save. Personal privacy/mute/Discord opt-out settings will reset, and progress or preset-completion notifications may fire again if you later return to 1.1.0.
This mod has no additional files