I am newish to java, and I am trying to make a potion effect called Builder's Blunder. It stops players from building. I have the effect set up and I can get it, but it does nothing. I know how to add a new icon for it. I am trying to set entity capabilities allowEdit false.
I would appreciate any help I can get. Please try to put it in the most explanatory way possible. Here is my code: