Singularity Detector

Singularity Detector

304 Downloads

Singularity

A small mod to find item singularities.

CurseForge latest version Modrinth latest version

Features

  • Automatic scheduled item removal (configurable)
  • Farm leak detection
  • Fully configurable
  • Warns before clearing items
  • Easy to set up
  • Minimal dependencies
  • Runs on a separate thread
  • Very well optimized
  • 100% server-side

Why?

An item singularity is where there are tons (possibly thousands) of items dropped on the ground in a single location. This can reduce a server's TPS (Ticks Per Second) to a very low amount, compared to the normal 20. This mod aims to fix that.

By using techniques such as dropped item removal on a timer, you can reduce the amount of items in a location. The issue with this is that it is a band-aid fix, and won't help in the long term.

The best way to fix it is to eliminate the problem at its source, removing the need for the other approach. With Singularity, it can find the coordinates of potential item singularities, allowing you to find these and fix them.

Roadmap

  • Implement item removal timer
  • Implement singularity detection
  • MORE CONFIGURATION!!
  • Render language keys on the server-side
  • Better detection algorithm

References

This project includes modified portions of:

Dependencies for this mod include Cloth Config and Architectury API.

Debugging

There is a new command! /singularity debug

It takes 4 arguments:

  • Level: The ResourceLocation of the dimension to spawn items in
  • Position: Where to spawn the items (x, y, z) in that dimension
  • Item ID: The item's ID (ResourceLocation)
  • Count: How many items to spawn (min: 0, max: Infinity)

Example:

/singularity debug minecraft:overworld 0 100 0 minecraft:stick 8000