Create: Power Loader (Fabric)

Create: Power Loader (Fabric)

64.6k Downloads

Restricting players from modifying chunk loaders

SageofTurtles opened this issue ยท 0 comments

commented

I'm using this mod in my modpack for a server. To avoid overloading the server with too many loaded chunks, I'm wanting to restrict which players can craft, place, break, or change the radius of the chunk loaders. Most of these I can accomplish with KubeJS, but I can't figure out how to prevent players from being able to change the radius on a brass chunk loader by holding right-click on the square icon to open the radius GUI.

Is there an event I could cancel to prevent players from being able to change that setting? I used event.rightClick to prevent players from being able to pick the chunk loader up with a wrench, but apparently the radius setting GUI uses something else because that is still working.

As an additional suggestion, it would be nice to have options like this built into the config so that server owners can limit access to or use of chunk loaders to avoid performance issues from widespread use.