DasHomi / preventer

A mod that prevents you from doing dumb things
https://modrinth.com/mod/preventer
MIT License
10 stars 4 forks source link

[Suggestion] Prevent blockbreaking for blocks that player doesnt want to break #72

Open Art0sh opened 1 month ago

Art0sh commented 1 month ago

I'd like to suggest a function that prevents the player from breaking customized/set blocks.

I had the idea when I was palying on a skyserver and broke pistons in my cobblestone/oregenerator repeatedly. So I searched for a mod that would allow me to disallow the breaking of pistons. Your mod was the one that had the most "alike" features, so I chose to suggest that feature.

This feature should be made so the player can decide which blocks he dont want to be able to break

DasHomi commented 1 month ago

It's a good idea, I had basically the same idea in the past but decided against implementing it in preventer as it would make the mod way too complicated with conflicts between different modules. So I decided to spin that off into a different mod that focuses on customizable lists of all kinds of actions with items/blocks one want's to (dis)allow. I started to develop that mod but hit a roadblock with trying to implement some kind of config panel that allows the player to change the list, as no current config library mod that offers a good way to implement item lists. So I'll put this issue on hold for now, until I find a solution for the problem (which very well could be developing my own config mod if I find the time).