"light" attribute, or configuration to prevent wand updating on ModifyAttribute
NightScythe1 opened this issue · 1 comments
As there is no 'light level' attribute for the player, I tried creating my own with a passive spell that auto-updates it for players regularly. However, 'ModifyAttribute' action causes the player's wand to regenerate/reload, resulting in it constantly flickering/spamming in the player's hand if ModifyAttribute constantly happening. Would it be possible to set up a default 'light' attribute on the player that updates on their location, such as the 'temperature' or 'location_z' attributes? Or if not, could we set up a parameter in the Attribute's config to disable wands updating every time the attribute is updated?
It's pretty easy to add light attributes, I will do that now.
ModifyAttribute causing wand reload is a deeper issue, unfortunately- I think it's probably solvable, the root cause being updating the wand NBT data, because when attributes change the wand has to recompute all of its properties- but fundamentally that shouldn't require changing NBT data, just the in-memory properties. But the whole system is kind of a mess at this point.