Clear Lag (Configurable) V1.1
Clear Lag (Configurable) V1.1
Clear Lag V1.1
- 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 chance 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 July 22st 7:45 PM
Haste Link: https://one.denizenscript.com/haste/72788
- 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 chance 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 July 22st 7:45 PM
Haste Link: https://one.denizenscript.com/haste/72788
Last edited by ZNChano on July 22nd, 2020, 4:45 pm, edited 2 times in total.
- mcmonkey
- Site Admin
- Posts: 295
- Joined: August 5th, 2016, 7:27 pm
- Location: Los Angeles, California, USA
- Contact:
Re: Clear Lag
Destroying all mobs seems a bit excessive.
The inconsistent capitalization is ... weird.
You have a few
You should probably have a
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.Denizen lead developer. On Discord as
mcmonkey#6666
.Re: Clear Lag
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 :)
Re: Clear Lag (Configurable) V1.1
From the Discord earlier ^, my feedback:Chano wrote:July 22nd, 2020, 4:46 pmthoughts?
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.
Re: Clear Lag (Configurable) V1.1
I changed to True & False, Thanks!bear wrote: ↑July 22nd, 2020, 5:06 pmFrom the Discord earlier ^, my feedback:Chano wrote:July 22nd, 2020, 4:46 pmthoughts?
In terms of consistency in configurations for Minecraft, I'd recommend standard usage oftrue
/false
overyes
/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, theremove
command does not currently show that it supports a list of worlds, so you would have toforeach
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.
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
-
- New
- Posts: 4
- Joined: December 16th, 2020, 5:05 pm
Re: Clear Lag (Configurable) V1.1
I created an account just to comment here. love this script it's great on my little private server.
Who is online
Users browsing this forum: No registered users and 3 guests