EpicBanItem achieves the goal of item banning by mapping items (and blocks sometimes) to NBT and then checking and updating them.
EpicBanItem uses the method similar to MongoDB for querying and updating NBT. EpicBanItem currently supports most of the operators used in MongoDB for querying and updating.
Hi I am wondering if it’s possible to limit combat with this mod? I’d like users to still be able to pick the banned items but I noticed isn’t a check for combat.
@AzureZhen Well, I have also read what you said on Discord. Let me confirm what you need: just disable left/right clicking the item while keep the item still being held by player instead of the item being removed. It is possible in EpicBanItem by an interactive interface in the chat window.
Execute the edit command first:
ebi edit <rule-name>
Then an interactive interface should be popped out:
============================================= CheckRule:<rule-name> Priority:5 Triggers:use pickup click throw drop place break interact Worlds:DIM-1 DIM1 world QueryExpression:Currently Default Origin UpdateExpression:Currently Default Origin Save
Just click the Currently Default Origin of UpdateExpression and then a command completion will be applied to your chat window like this:
Remove all the part after xxxx and leave a space there:
ebi cb xxxx
Please make sure that there is a space appended after xxxx.
Then execute the command, the UpdateExpression is set to null, which allows the player to keep the item.
I’m not sure if you can speak in Chinese but your id may indicate this. I am not a native speaker, so I can also explain for you in Simplified Chinese if you think that the English I wrote is not clear enough.