Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Tracker for modding dedicated server #35

Open
4 tasks done
ZXMushroom63 opened this issue Jun 20, 2024 · 13 comments
Open
4 tasks done

Tracker for modding dedicated server #35

ZXMushroom63 opened this issue Jun 20, 2024 · 13 comments

Comments

@ZXMushroom63
Copy link
Member

ZXMushroom63 commented Jun 20, 2024

by requesting a bug you must check these boxes

  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels
  • I just checked all of these boxes without reading the labels

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 than window. (web workers do not have a window)

Screenshots

No response

@STPv22
Copy link

STPv22 commented Aug 3, 2024

V1.4 (i assume) is going to be fire

@ZXMushroom63
Copy link
Member Author

V1.4 (i assume) is going to be fire

if i get this working

@STPv22
Copy link

STPv22 commented Aug 7, 2024

V1.4 (i assume) is going to be fire

if i get this working

Theres still the java gui if it doesn't

@OeildeLynx31
Copy link

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

@ZXMushroom63
Copy link
Member Author

Posting an update here: I successfully hooked into the dedicated server, meaning that you can now mod it when the new release comes out

@STPv22
Copy link

STPv22 commented Aug 22, 2024

NOICE

@STPv22
Copy link

STPv22 commented Aug 22, 2024

Wait, what does this allow is to do?

@OeildeLynx31
Copy link

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.

@STPv22
Copy link

STPv22 commented Aug 22, 2024

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.

?

@ZXMushroom63
Copy link
Member Author

ZXMushroom63 commented Aug 30, 2024

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.

@STPv22
Copy link

STPv22 commented Aug 30, 2024

Nice huh

@OeildeLynx31
Copy link

OeildeLynx31 commented Aug 30, 2024

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.

Could you make an example mod of this?

@ZXMushroom63
Copy link
Member Author

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.

Could you make an example mod of this?

eventually

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants