Re: [LVS] Latest Version Server changelog
Posted: Sat Jan 27, 2018 1:43 pm
Over the last few days I've been switching LVS' command block systems over to functions. Though it only took a few days to get it all properly set up, I've spent a far longer time rewriting all the systems to make the best use out of functions. The new functions are more performant, running fewer commands when they are not needed and not re-checking for matching entity multiple times in one system thanks to the use of @s (for any command enthusiasts out there).
Some stats!
The largest command function is used in the new mobile jail system in order to lock every chest, trapped chest, furnace, dropper, hopper, dispenser, and all 16 colours of shulker box near a jailed player to prevent further tampering. (they are unlocked once the jailed player leaves or is removed from jail)
I did not write 108087 commands by hand, I first wrote a script which wrote the commands for me
There's still a few pesky command block chains remaining in the Command Block Palace to be functioned. I can hopefully start cleaning things up in there soon
The Functioning
Some stats!
- 108628 total commands,
- 152 custom command functions.
- 108087 commands in a single function
The largest command function is used in the new mobile jail system in order to lock every chest, trapped chest, furnace, dropper, hopper, dispenser, and all 16 colours of shulker box near a jailed player to prevent further tampering. (they are unlocked once the jailed player leaves or is removed from jail)
I did not write 108087 commands by hand, I first wrote a script which wrote the commands for me
There's still a few pesky command block chains remaining in the Command Block Palace to be functioned. I can hopefully start cleaning things up in there soon
The Functioning
- Moved command block based grief detection over to functions
- Moved Market and Nether Hub protection areas over to functions.
- Implemented both our classic jail and the new mobile jail system as functions.
- Currently using the mobile jail system.
- The mobile jail locks players in place where they were when jailed, rather than moving them to the jail box. This will make it easier for Guardians to track where they were and what they were up to, and will take some measures to reduce the impact of the damage in the surrounding area.
- Items dropped near a jailed payer will be prevented from despawning and will not be able to be picked up until the mobile jail is removed. This will prevent items dropped from griefed chests from despawning in some cases, allowing the owner to retrieve them when they return.
- Implemented an improved anti-theft system as functions. Can't say much about it, but it's pretty great. Still have plans to improve it.
- Re-implemented antilag mob killer as super performant functions.
- Implemented other miscellaneous systems and utilities as command functions
- Implemented an anti-herobrine custom command function to ensure Herobrine removal.