#Is it possible to have scripts in one behaviour pack communicate with scripts in another?
13 messages · Page 1 of 1 (latest)
Something like import { example } from "other_pack"
Alternatively I might be able to achieve basic communication through dynamic world properties, but what I posted above would be ideal
just import export not enough ?
i dont see why u need two script talk with each other from ur example
For example:
One addon provides a framework with template functions/classes for interacting with Render Bender, our third party program to change the hidden Minecraft RTX settings. It would provide templates for distance field detection and settings preset loading.
The other addon uses those template functions to interact with Render Bender. If your addon added a blood moon event, it would use the template settings preset load function to load a preset that makes the tone mapping red.
It would be more organized than including the entire Render Bender API library in several addons, should you have multiple that needed to use it applied to the same world.
well only way two addon can communicate with each other is using with scoreboard, entity name tags, entity tags, json entity event triggers
dynamic property is not ideal as u never know when someone requested something you will need to check for change every tick + its is limited
I see. I'll probably write the Render Bender API as something you'd copy into an addon for the time being then.
entity tags are great for seamless communication
you can wait for others for better ideas