mojira.dev
MCPE-185210

@minecraft/server-net api is not recognized on new versions of minecraft

The experimental "@minecraft/server-net" api does not work even with beta apis turned on.
The content log displays the following error:
[Scripting][error]-Plugin [Minecraft Fan Remote BP] - module [Minecraft Fan Remote BP - 1.0.0] depends on unknown module [@minecraft/server-net - 1.0.0-beta].

Steps to reproduce:

  1. Install my addon linked in the attachment as an example.

  2. Enable Content Log GUI in settings

  3. Create a new world with the addon installed and with the "Beta APIs" experiment enabled.

  4. Observe the unknown module error during the loading screen. Additionally, we can run /scriptevent fan:test to observe how my addon script has failed to load and will provide no response. If there is no bond bridge controller on your network, it should send the player a message saying "§cThe Device could not be reached. The Local Address is likely invalid."

Attachments

Comments 6

The server-net API might only be available on preview versions of Minecraft as of right now

The server-net API might only be available on preview versions of Minecraft as of right now

@PhosXD When I tried it, it didn't seem to work in preview minecraft either. However, it is possible that this api is only intended for bedrock dedicated server, so that maybe it could talk to some kind of backend, or something like that.

@PhosXD When I tried it, it didn't seem to work in preview minecraft either. However, it is possible that this api is only intended for bedrock dedicated server, so that maybe it could talk to some kind of backend, or something like that.

This is working as intended. @minecraft/server-net can only be added to BDS instances.

Aiden

(Unassigned)

1427542

Confirmed

Windows

Windows 11 23H2

Script-API

1.21.30.22 Preview, 1.21.2 Hotfix, 1.21.20

Retrieved