Wuzzy/Repixture
6
33
Fork
You've already forked Repixture
10

Locked doors #267

Open
opened 2026年02月06日 16:10:17 +01:00 by Dirkfried · 2 comments

Could you add locked (variants of) doors and item frames to the game? (Maybe with the same lock pick mechanism.)
This would be very convenient for multiplayer servers.

(Also about the comparison to MTG: there are steel doors that are protected.)

And would the right way to prevent lock picking be to set locks_picked_time=0 ?

Could you add locked (variants of) doors and item frames to the game? (Maybe with the same lock pick mechanism.) This would be very convenient for multiplayer servers. (Also about the comparison to MTG: there are steel doors that are protected.) And would the right way to prevent lock picking be to set locks_picked_time=0 ?
Owner
Copy link

Given there’s a dedicated lock item, adding lock support for more things makes sense. I'm not sure how far I want to take this.

Currently, locks are only weak protection for multiplayer servers because they're vulnerable to lockpicking.

Eventually I plan to spawn more locked chests in the world so the lockpick becomes more useful.

If you want strong protection, use a protection mod. Repixture implements the Luanti protection API (core.is_protected, etc.) quite well (I hope). Protection should work for any "complex" nodes in the game and prevent being changed by non-owners of the protection zone. If you find any such nodes where protection does not work or it can be bypassed, this is a bug (please report).

But this doesn’t work for doors, which intentionally ignore protection. So yeah, locked doors make sense. Also has the neat side effect that you can also use them to block villagers.

As for item frames, this is more esoteric. I think an item frames already obey protection. I'm not sure if I want to support locking to them as well. It's awkward theme-wise. A locked item showcase makes more sense to me.

Overall, I just think the whole locking system needs a major overhaul in general. But this is low-priority.

And would the right way to prevent lock picking be to set locks_picked_time=0 ?

No. But maybe I could add a setting that disables lockpicking for player-owned nodes.

Given there’s a dedicated lock item, adding lock support for more things makes sense. I'm not sure how far I want to take this. Currently, locks are only weak protection for multiplayer servers because they're vulnerable to lockpicking. Eventually I plan to spawn more locked chests in the world so the lockpick becomes more useful. If you want strong protection, use a protection mod. Repixture implements the Luanti protection API (`core.is_protected`, etc.) quite well (I hope). Protection should work for any "complex" nodes in the game and prevent being changed by non-owners of the protection zone. If you find any such nodes where protection does not work or it can be bypassed, this is a bug (please report). But this doesn’t work for doors, which intentionally ignore protection. So yeah, locked doors make sense. Also has the neat side effect that you can also use them to block villagers. As for item frames, this is more esoteric. I think an item frames already obey protection. I'm not sure if I want to support locking to them as well. It's awkward theme-wise. A locked item showcase makes more sense to me. Overall, I just think the whole locking system needs a major overhaul in general. But this is low-priority. > And would the right way to prevent lock picking be to set locks_picked_time=0 ? No. But maybe I could add a setting that disables lockpicking for player-owned nodes.

Ok, it seems that the protection was not clear to me.
I now tested it in a protected area (with the areas mod): Another player can open normal chests but right-clicking on item frames or the item showcase as well as punching a locked chest with a lock pick leads to nothing happening except for an "Is protected by..." message :-)

So my feature request reduces to only locked doors.

Ok, it seems that the protection was not clear to me. I now tested it in a protected area (with the areas mod): Another player can open normal chests but right-clicking on item frames or the item showcase as well as punching a locked chest with a lock pick leads to nothing happening except for an "Is protected by..." message :-) So my feature request reduces to only locked doors.
Wuzzy changed title from (削除) Locked doors and item frames (削除ここまで) to Locked doors 2026年02月06日 20:00:21 +01:00
Sign in to join this conversation.
No Branch/Tag specified
master
new_weather_types
clock
sponge
cushion
vase
pages
giant_crops
duckweed
new_hairs_new_skin_selection
new_hairs
multi_flower_2
dirt_redo
craft_compat
gold_coin_upgrade
gold_coin
new_traders
item_frame_flat
silktouch_paint
silktouch
newtrees
new_weather
creative_per_player
scrollbar_style
village_nextgen_thread
village_nextgen
new_website
tnt_faster
fixbrush
roots
amber_slime
fir
path_fixes
villager_pathfind_cost
fence_gate
slab_up
biome_skies
pencil_showlabel
moonflower_seed
unicode_signs_refactor_newsigns_sideways
unicode_signs
spyglass
craftcolor
villager_pathfind
mobs_new2
paint_book
moon_phases
newmusic
weblate_test
paint4dir
whistle
buoy
pot
4x4grass
village_vmanip
seagrass
3.20.0
3.19.0
3.18.2
3.18.1
3.18.0
3.17.3
3.17.2
3.17.1
3.17.0
3.16.0
3.15.1
3.15.0
3.14.0
3.13.1
3.13.0
3.12.1
3.12.0
3.11.0
3.10.0
3.9.0
3.8.0
3.7.0
3.6.3
3.6.2
3.6.1
3.6.0
3.5.0
3.4.1
3.4.0
3.3.0
3.2.1
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.1.0
2.0.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
v1.3.6
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.0
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.0
v0.6.0
v0.5.0
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.2
v0.3.1
v0.3.0
v0.2.0
v0.1.1
v0.1.0
Labels
Clear labels
Category: Discussion
For discussions about the game
Category: Entities
About entities or objects (including player)
Category: Gameplay
About gameplay mechanics in general
Category: Graphics
About graphics
Category: GUI and HUD
Anything related to the graphical user interface or heads-up display
Category: Items and Tools
About items or tools, but not nodes
Category: Mapgen
About the map generator
Category: Nodes
About nodes
Category: Sounds
About sounds
Category: Translation
About translations
Category: Website
Related to the Repixture website
Kind
Balancing
About game balance
Kind
Bug
When something doesn't work right
Kind
Documentation
About documentation, both for devs and players
Kind
Feature
Ideas, feature requests, enhancements, etc.
Kind
Maintenance
Code quality, technical improvements, refactoring, etc.
Kind
Performance
About making the game run fast
Priority
CRITICAL
Highest priority level. For crashes, major data loss, etc.
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Decision needed
When the issue still needs a decision on what to do
Reviewed
Duplicate
When the issue existed already
Reviewed
Invalid
When the issue was not valid
Reviewed
Rejected
When something that was proposed was rejected
Status
Needs engine change
When it can only be solved after a Luanti bugfix/improvement
Status
Needs testing
If the task is believed to be done, but needs testing
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Wuzzy/Repixture#267
Reference in a new issue
Wuzzy/Repixture
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?