I think it would be incredibly appreciated if molang queries could access dynamic properties (as in, ones set via the script api). Currently there's only one reliable and effective way to communicate between js and molang, that being regular properties. The issue with regular entity properties is that the entity is required to have them defined in its server entity, which is not only impractical but also raises other problems. For example, if a pack added a property to the player to interact with molang, the player JSON would become outdated/incompatible the moment any updates or packs also changed the player JSON. I believe we should be able to use something like q.customProperty() or q.dynamicProperty() to read dynamic properties by name. If the dynamic property being queried doesn't exist, or has a value that isn't compatible with molang, it will return 0. I'm not 100% sure which topic suits this post best, either Add-ons or Scripting and Mods.
Please sign in to leave a comment.
0 Comments