Samsuik / Sakura

10 stars 7 forks source link

(Suggestion) Disable water near spawners #14

Open IAISI opened 5 months ago

IAISI commented 5 months ago

On factions server players often water spawers to make them hard to raid, while preventing liquid flow/placement near spawners could be done with plugins, performance usually isn't great, it's been awhile since I've really messed with custom .jars aside from editing a few minor things here and there, but I figured this would be good suggestion.

Something like min-range with 0 resulting in vanilla behavior, 1 blocking liquids 1 block around spawner, 2 in 2 blocks and so on... should also check diagonal blocks, possibly with option to ignore blocks below the spawner (probably not worth the hassle tho).

Samsuik commented 5 months ago

I'm not sure on implementing anything like this in Sakura. There are alternatives such as allowing spawners to blow up while watered which would be less intensive than looking for spawners or sponges on water flow, and plugins could check if there are any tile entities in the adjacent chunks before looking for spawners in the radius as an optimisation.