ElectricalAge icon indicating copy to clipboard operation
ElectricalAge copied to clipboard

Add Locking / Keyed Switches

Open ellingtonisland opened this issue 5 years ago • 9 comments

Add some form of Locking / Keyed Switches (those switches that require a key to turn on and off you see in schools etc.)

they should work so the switch and key can only be activated my the minecraft player username that placed the switch or had a key assigned to them.

this would come in handy since world guard doesn't prevent people like griefers from messing with electrical age switches and buttons and it could be bad if a griefer messes with a switch that control things with generators etc.

here is photos of a pass and seymour key switch and key to base the design on

download

518bTLl-mZL SX425

ellingtonisland avatar Apr 14 '19 17:04 ellingtonisland

Unfortunately this is kinda pointless, since you can just run cables around them :P

That said, you can password protect the switching of a meter. (again, pointless)

jrddunbr avatar Apr 14 '19 17:04 jrddunbr

I do want to add username-locked stuff later, but that's not something on the current roadmap. We've got lots of other thing that we need to work on first.

jrddunbr avatar Apr 14 '19 18:04 jrddunbr

on servers world guard prevents placing cables where they shouldn't be but it doesn't prevent users from messing with switches by turning them on and off, the key switch would prevent this.

ellingtonisland avatar Apr 14 '19 18:04 ellingtonisland

Electrical Age is not compatible with WorldGuard and it will be completely unsupported. I would suggest against using them together, because you WILL corrupt your world.

Electrical Age disregards any sort of permission systems right now, and the blocks that WorldGuard deletes will be replaced by Electrical Age, but invisible in the world.

jrddunbr avatar Apr 14 '19 18:04 jrddunbr

what form of griefing protection is EA compatible with then on servers if it is not compatible with WG.

ellingtonisland avatar Apr 14 '19 18:04 ellingtonisland

None. It's not currently possible. Make backups is my best recommendation.

jrddunbr avatar Apr 14 '19 18:04 jrddunbr

I should probably explain why Electrical Age and <insert protection mod that tries to protect blocks here> are incompatible.

Electrical Age works by having blocks that effectively act as proxies into the solver application, which calculates the actual electrical circuits. When you break something by hand, it unregisters the connection in Electrical Age. If WorldGuard/<insert mod name here> tries to replace that block immediately after, it doesn't restore the internal state of Electrical Age's solver application, leaving broken block proxies across your world whenever someone breaks a block and it gets replaced.

By that same token, mods such as WorldEdit are also incompatible, because they will make block proxies that are unregistered in the internal solver, or when moving blocks, not register the block destroyed entry and fail to inform Electrical Age that those blocks no longer exist.

jrddunbr avatar Apr 14 '19 18:04 jrddunbr

Add these anyway they would make a nice switch type for things such as a switch you didn't want people messing with on a private server with friends

ellingtonisland avatar Apr 16 '19 22:04 ellingtonisland

It's still just going to be for looks if we do that. It's not possible to properly lock out systems.

jrddunbr avatar Apr 16 '19 22:04 jrddunbr