Update to new libnbt API.
Add environment property to portals, environment of the created instance.