Update to 1.21.9#65
Merged
PotatoPresident merged 17 commits intoQuiltServerTools:masterfrom Oct 9, 2025
Merged
Conversation
…ainers, don't store all flags in a locked container's flag set and fallback to config flags
Contributor
Author
|
PR should be ready to review now, there have been a few major refactors, as well as improvements to the mod's config file, a new Will update PR description in a bit. Re-running the actions will probably fix them. |
Contributor
Author
|
I've cleaned up/improved the CI workflows as well to make them more reliable, and fixed the CI badge in the README too :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the mod to 1.21.9. It also performs major refactors to texts used in the mod, lock flags, and the mod's configuration file.
Full list of changes:
Build/project
LockTypeLockTypeclass, replacing it with aTypeenum in theLockinterface, which does the same things, but simpler.Mod configuration
HTMConfigclass has been refactored into a immutable record, using a codec for reading and writing.snake_case:canTrustedPlayersBreakChests->can_trusted_players_break_chestsdefaultFlags->default_flagsautolockingContainers->auto_locking_containersSingleBlockSelectorrecord has been created for reading auto-locking containers. This selector can either be a single block identifier, or a block tag.BlockFlagSet.SingleBlockSelector, meaning you can use a block identifier or a block tag.1.1.4(released almost 4 years ago) is no longer supported.Flags
HTMContainerLockrecord, instead a dedicatedFlagSetclass has been created, which uses anEnumMapinternally.FlagSetclass itself has been designed to be immutable, and has no methods for modifying the map directly.COPPER_GOLEMSflag) and newly placed locked containers.COPPER_GOLEMSflag has been added, used to control whether copper golems can open a locked container or not.Commands
/htm flagnow displays values for any flag, even when not set on a locked container./htm flag <type>has been added to reset a flag on a locked container to its default value (specified in the configuration).Texts
Text.translatablehave been replaced with constants inHTMTexts.nl_nl).Other things
An example new configuration file is as follows:
{ "can_trusted_players_break_chests": false, "default_flags": { "overrides": { "chest": { "copper_golems": true }, "#copper_chests": { "copper_golems": true } }, "default": { "hoppers": true, "copper_golems": false } }, "auto_locking_containers": [ "minecraft:chest", "minecraft:trapped_chest", "minecraft:barrel", "minecraft:furnace", "minecraft:blast_furnace", "minecraft:smoker", "#minecraft:shulker_boxes", "#minecraft:copper_chests" ] }The file above disables copper golem access to all locked containers except copper chests and normal chests.