[Planning] Ziptie- A mod api between Sponge and Clients

Yes this WILL require a client mod to work, it’ll just receive the zips and deal with them.
Ziptie is a planned plugin/mod combo I came up with. It allows servers to send mod data to clients to make custom gameplay components on the fly. Taking input, but heres the current basic plan.

Zip file:
mod.json- Contains the mods data like custom blocks, items, ect. Also contains basic mod info like description, author ect.
somemodimg.png - A block, item ect image file
somemcmodel.(json?) - Custom model json file
README.txt - Optional file containing installation instructions for server owners

That’s all for now. I’ll take input, because I have no idea if this is 100% possible.

Also, if the request is high, I might consider XML

I’m confused on what this is…

Did you read the post, or just the first 2 sentences?

It’s not long, read the whole thing. Don’t get me wrong, I have an idea and I get that it is a mix of client/server mod, but mind elaborating?

Server sends a zip file to client containing some mod information for, for instance, an emerald sword. Client receives it, then injects it into the game before logging in to the server 100%.

Oh shit yeah you’re totally right!

Skimmed over that part (most important xD).

Seems interesting, can’t wait to see the source (assuming FOSS?).

Yep. Also I just added that sentence, don’t feel stupid :wink:
Anyway, this’ll probably require a build on both forge and sponge if thats even remotely possible :wink:

I’m not entirely certain that this is possible. I’d argue that the security risk is an issue, and I’m not sure how you’d address that.

1 Like

We aren’t passing java code to the client, all the client reads is JSON. Also, yeah. Without some changes to the log in process to servers on the client this would be difficult

What do you plan on doing with just the Json? From what I’m reading in your post, you’re adding the ability for custom blocks, but I’m not seeing any way to make those blocks do anything.

Its a very vague description. It won’t open up for a ton of customizaton, but for the most part, custom item drops, hardness and blast resistance to start with.

Well, it certainly looks interesting if it’s possible. Good luck!

Creating block definitions and registering them on the fly seems like quite a task… (As in doing it correctly)

2 Likes

About time sponge’s equivalent of spoutcraft pops up.

Will you be including sounds.

I had a go at this a while ago (wow, 7 months)

Here’s a JSON file: http://pastebin.com/7kJmKW2R
and here’s the API calls to create the JSON: http://pastebin.com/DePskxPZ

I experimented with using method calling on classes and objects but that would be dangerous so I would recommend limiting it to a finite set of possible actions in the JSON.

Yeah. It would be a pretty locked down processing of the JSON so no malicious stuff. You still would have annoying mods, but what can ya do :stuck_out_tongue:

Would be basically a resource pack with real items, blocks, etc. Thats cool it will be limited but better than sending code to the client.

Also, sending code to the client is bound to cause incompatabilities, so this works better! :smiley: