prevent_item_use power doesn't affect elytra
JumperREDACTED opened this issue ยท 3 comments
For me, this works. When I have a prevent_item_use
power which prevents elytra from being used, right-clicking it won't equip it anymore. That's all a prevent_item_use
power is supposed to do - prevent you from using the right-click functionality of an item. If you want to actually prevent elytra from being equipped through other means as well, you'd have to add a restrict_armor
power and prevent elytra in the chest
slot.
If you expected different behaviour than what I just described, feel free to comment on this issue and let me reopen it. Otherwise I'm going to close it, assuming you had different expectations from the power type.
I was hoping it would prevent elytra from opening while it's equipped. I wanted to put a doublejump power on spacebar, but if the player was wearing elytra it opens at the same time making it quite wonky. The plan was to make elytra only openable while doublejump isn't available.