Git Product home page Git Product logo

Comments (7)

jmattingley23 avatar jmattingley23 commented on July 30, 2024 1

Digging up this old thread in case anyone else is interested in using this mod on paper/spigot servers - I've implemented the server-side component as a plugin here: https://github.com/jmattingley23/AppleSkinSpigot

from appleskin.

squeek502 avatar squeek502 commented on July 30, 2024

That description is only talking about the player's saturation/exhaustion values. All food values will be accurate no matter what.

from appleskin.

PrincessRTFM avatar PrincessRTFM commented on July 30, 2024

Ohh, okay! Thank you! Is there any way to get those values sent to the client from a spigot server, or would that require a port of the part of this mod?

from appleskin.

squeek502 avatar squeek502 commented on July 30, 2024

Not familiar with Spigot, but yeah it'd need something like this: https://github.com/squeek502/AppleSkin/tree/1.12/java/squeek/appleskin/network

IIRC the default Minecraft hunger packet could be re-used for the purpose of syncing saturation; you'd just need to make the server send it more often than it usually does (in vanilla, it only sends the packet when saturation hits zero or hunger changes). Exhaustion syncing would be harder to do with a purely server-side plugin, though, since there's no existing packet used for that in Minecraft.

from appleskin.

JamesTheAwesomeDude avatar JamesTheAwesomeDude commented on July 30, 2024

Am I understanding this: right now, the client-side AppleSkin is only an estimate of true values; it could drift some amount between packets?

IIRC the default Minecraft hunger packet could be re-used for the purpose of syncing saturation; you'd just need to make the server send it more often than it usually does

This is a mostly client-side mod, but it needs to be on the server in order to display accurate saturation/exhaustion values on the client.

So… is there available a server-side plugin for this?

I see this plugin, but it appears to be an unmaintained 3rd-party implementation.

from appleskin.

squeek502 avatar squeek502 commented on July 30, 2024

the client-side AppleSkin is only an estimate of true values

Not really an estimate, it just shows the current values that the client has (which don't update on their own).

So… is there available a server-side plugin for this?

Not sure. If that plugin does what it says, then it might work fine (i.e. install that on the server, and then load AppleSkin on the client).

from appleskin.

squeek502 avatar squeek502 commented on July 30, 2024

Thanks @jmattingley23, added a link to it in the description on Curseforge.

from appleskin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.