There already is a feature to limit the number of live item entities in the engine: item_entity_ttl - time in seconds for dropped items to live. The default is 900 - 15 minutes. Hence there is no need for a mod to implement this. This mod allows a bit more control, but honestly I don't think that control and complexity is necessary here. I am also not fond of the interval approach of this mod: It will annoy players when they have to scramble to collect items before they are cleared, and when their items are deleted if they missed the announcement in chat. A TTL avoids this; it simply works much better as a game mechanic.
The name ("clear lag") and description ("lag reduction") of this mod are also promising too much. I was quite curious to see which general solutions to reducing lag a mod might attempt, and was a bit disappointed when I found out it just reimplements a very particular engine feature.
Lag arises for a variety of reasons, and this mod at most addresses a singular one, which is already dealt with via item_entity_ttl.
I think a more specific name, say clear_dropped_items, would have been more suitable (unless of course you intend to add further measures later).
p.s. Your description feels as if it has been edited and bloated by AI. The purpose of this mod could be conveyed in essentially a single sentence: "Periodically clear dropped items to reduce lag."
I'm on many servers where items cause lag (farms, 3x3 pickaxes), which is why I made this mod. This mod allows for more control over clearing items on the ground, with messages in the chat, and players are notified. I'll consider changing the name.
There already is a feature to limit the number of live item entities in the engine:
item_entity_ttl
- time in seconds for dropped items to live. The default is 900 - 15 minutes. Hence there is no need for a mod to implement this. This mod allows a bit more control, but honestly I don't think that control and complexity is necessary here. I am also not fond of the interval approach of this mod: It will annoy players when they have to scramble to collect items before they are cleared, and when their items are deleted if they missed the announcement in chat. A TTL avoids this; it simply works much better as a game mechanic.The name ("clear lag") and description ("lag reduction") of this mod are also promising too much. I was quite curious to see which general solutions to reducing lag a mod might attempt, and was a bit disappointed when I found out it just reimplements a very particular engine feature. Lag arises for a variety of reasons, and this mod at most addresses a singular one, which is already dealt with via
item_entity_ttl
. I think a more specific name, sayclear_dropped_items
, would have been more suitable (unless of course you intend to add further measures later).p.s. Your description feels as if it has been edited and bloated by AI. The purpose of this mod could be conveyed in essentially a single sentence: "Periodically clear dropped items to reduce lag."
I'm on many servers where items cause lag (farms, 3x3 pickaxes), which is why I made this mod. This mod allows for more control over clearing items on the ground, with messages in the chat, and players are notified. I'll consider changing the name.
Thanks for your feedback.
Themostrandom01
change the name