-
Notifications
You must be signed in to change notification settings - Fork 117
Tracker for modding dedicated server #35
Comments
V1.4 (i assume) is going to be fire |
if i get this working |
Theres still the java gui if it doesn't |
You could try beginning with a packet to send to the server which can execute a cheat command as player, so we can summon mobs and place blocks |
Posting an update here: I successfully hooked into the dedicated server, meaning that you can now mod it when the new release comes out |
NOICE |
Wait, what does this allow is to do? |
Everything you can do with a basic mod, which isn't adding new mobs or blocks. You can edit as you want, but I don't think you can make new ones. |
? |
you can definetely add new items, just in a non traditional way. You would have items differentiated via lore tags or similar, and then modify the client side renderer and add custom behaviours server side. |
Nice huh |
Could you make an example mod of this? |
eventually |
by requesting a bug you must check these boxes
about the bug
This is a tracker for modding the single player dedicated server. Currently, all mods run client-side, even in single player. Exposing the dedicated server is probably going to be hard due to it running in it's own sandboxed web worker (no exposing instances).
Current best idea from me is add a custom packet that you can send to a server that runs a
new Function()
in the web worker's context. Then, you can use the Web BroadcastChannel API to exchange information backwards and forwards between client and dedicated server.Additionally, to make use of the already existing ModAPI, using
globalThis
rather thanwindow
. (web workers do not have a window)Screenshots
No response
The text was updated successfully, but these errors were encountered: