Create

Create

86M Downloads

[DEV] How could I restrict players from interact with blocks' filter slots and like that?

TheTarasus opened this issue ยท 0 comments

commented

Describe the Suggestion

I have the factions mod that I have patched for about 30 times to be compatible with Create and CBC. I am doing it on Fabric 1.18.2, however, when I reported this issue on fabric version - they sent me to that issue tracker.

How could I restrict players to interact with interfaces on create blocks? Like, I want to restrict players from placing or removing items from create blocks' filter slots, or restrict players to modify anything that is block from create in the claimed chunk.

Also, I tried to inject into AbstractBlock.onUse, Item.use and ServerPlayerInteractionManager.class to prevent the interaction. But it just doesn't work.

Which code can disable all interactions from certain players with any interfaces of create blocks?

Screenshots and Videos

No response

Additional Context

No response