Yes, it is possible, but requires a little fiddling around. Might I suggest you head over to the Minecraft Education Discord group:
https://discord.gg/7fSQBdx we had a brief discussion there and figured out a way to make it happen. I have not had the time to record a full tutorial on it yet, however it involves using a behaviour pack, placed in the development folder, and then applying that to worlds. If that doesn't make a whole heap of sense, I have a current tutorial series that might get you part way there:
https://youtube.com/playlist?list=PLxLyPUjOULzIIMfDqBqlOb8ZH6XsIakpz but is currently focussed on custom entities (I would say episode 2 is the most relevant, but episode 1 sets you up with some of the software you will need). I look forward to seeing you on the Discord group, where these kinds of conversation are a bit easier :D
Elfie.