Clear Lag (Configurable) V1.2

ZNChano

Member
Jun 6, 2020
10
0
0
Clear Lag V1.1
- BillyTee (Chano)
This Script will Remove all Entities and Ground Items from a specific world or the entire server every 15 Minutes.

There are now two new Config options within the script!
Simply change the World value to the world you want to clear on, and change Entities value to switch between clearing removing all mobs and animals + items OR just items!
If you would like to change the interval, simply change the number within the event script.

Updated April 15th, 2021 4:52 PM
Haste Link: https://paste.denizenscript.com/View/83474
 

mcmonkey

Administrator
Staff member
Destroying all mobs seems a bit excessive.

The inconsistent capitalization is ... weird.

You have a few island_normal_world still instead of your INSERTWORLDHERE

You should probably have a debug: false on that.
 

ZNChano

Member
Jun 6, 2020
10
0
0
Thanks, will add that. And the reason it removes mobs is because it’s used on a skyblock server with large mob grinders and such. But I’ll add a tagged out message telling the user it can be removed if needed :)
 

Hydra

Member
Jan 26, 2019
17
1
3
27
Chano said:
thoughts?

From the Discord earlier ^, my feedback:

In terms of consistency in configurations for Minecraft, I'd recommend standard usage of true/false over yes/no.

You could also specify a list of worlds instead of a single world. Specifying a list of worlds would help with anyone editing it to know exactly how it should be formatted. Do note that if you did intend to implement this, the remove command does not currently show that it supports a list of worlds, so you would have to foreach that list of worlds.

Would also recommend that if it's supposed to be edited at all, that you move it to an external YAML file and load it on server start. Optimally, a command to reload that YAML after edits would be ideal as well, as opposed to reloading your scripts. Generally, if this were intended for "Drop-in-ready" usage excluding the configuration file, editing that would require reloading scripts. Which, if you can avoid, you don't want just anyone touching your scripts. If that YAML returned invalid for some reason, it would not load the entire file and those scripts wouldn't load on reload

edit:
Also, your date timestamp in the haste is still showing from three days ago.
 

ZNChano

Member
Jun 6, 2020
10
0
0
bear said:
Chano said:
thoughts?

From the Discord earlier ^, my feedback:

In terms of consistency in configurations for Minecraft, I'd recommend standard usage of true/false over yes/no.

You could also specify a list of worlds instead of a single world. Specifying a list of worlds would help with anyone editing it to know exactly how it should be formatted. Do note that if you did intend to implement this, the remove command does not currently show that it supports a list of worlds, so you would have to foreach that list of worlds.

Would also recommend that if it's supposed to be edited at all, that you move it to an external YAML file and load it on server start. Optimally, a command to reload that YAML after edits would be ideal as well, as opposed to reloading your scripts. Generally, if this were intended for "Drop-in-ready" usage excluding the configuration file, editing that would require reloading scripts. Which, if you can avoid, you don't want just anyone touching your scripts. If that YAML returned invalid for some reason, it would not load the entire file and those scripts wouldn't load on reload

edit:
Also, your date timestamp in the haste is still showing from three days ago.

I changed to True & False, Thanks!
But about the world list, are you referring to allowing the user to add a list of worlds? or me adding examples? Because Examples would be useless as I have no clue what their world would be named. Ill add the ability for multiple lists though definitely.
Ill work on the yaml later too! Thanks
 

ZNChano

Member
Jun 6, 2020
10
0
0
MadeBySaints said:
I created an account just to comment here. love this script it's great on my little private server.

Thank you! I am not sure if you are still active, but it has been updated!