Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need better blacklist #658

Open
Cassy-Lee opened this issue Oct 27, 2024 · 3 comments
Open

need better blacklist #658

Cassy-Lee opened this issue Oct 27, 2024 · 3 comments

Comments

@Cassy-Lee
Copy link

We have a bunch of tree farms which generates millions of records about #dispenser destroying and placing spruce_leaves and make the database over 70GB.
#dispenser can't be disabled because some of the machines depends on dispenser and powder_snow.
minecraft:spruce_leaves can't be disabled because we use it to make waterlogged leaves for farms and to stop mob spawning.

Another example is cobblestone generator. We have SlimeFun in our server which needs a lot of cobblestone for ores, so player have built a lot of cobblestone generators. It produces #lava breaking lava record and #lava placing cobblestone records. #lava is required for rollback when lava breaking redstones and other things. cobblestone is required when somebody messing around.

Due to the amount of records, the SQLite trigger before insert on co_block is slower then tree growing.

One way to add this feature:
Allow detailed filtering to blacklist.txt like user:#dispenser action:block includes:spruce_leaves

Other suggestions:
Move bone-meal-grown trees to #tree user. Cancel destroy and place record if they occurs at the same tick and the block are the same.

@Cassy-Lee
Copy link
Author

Use move action for (sticky) piston moved block, sand/gravel drop, dragon egg teleport.

@Cassy-Lee
Copy link
Author

Use replace action for destroy and place record at the same tick and different block.

@Kocimietka7192
Copy link

I strongly support the introduction of the ability to add detailed filters in the blacklist.txt file. On a server with SkyBlock mode, income farms such as mob, creeper, cactus, melon or pumpkin farms generate huge amounts of events, which causes CoreProtect to take up disk space very quickly. Currently, I cannot disable some functions in the config.yml file, because they are crucial for other mechanics, but such a detailed list would allow to eliminate unnecessary entries (e.g. #dispenser destroying spruce_leaves or #lava placing cobblestone) without losing key data during rollbacks. This would be a huge relief for both the database and server performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants