Coder Social home page Coder Social logo

Mount parrot on shoulder about echopet HOT 9 OPEN

arnuh avatar arnuh commented on September 27, 2024
Mount parrot on shoulder

from echopet.

Comments (9)

Arnuh avatar Arnuh commented on September 27, 2024

I looked at it a bit yesterday but then got occupied with games/talking and never finished it.. Looks like you can set every? entity onto your shoulder. So I'll initially code it to work with only the parrot(If it even will work properly at all) and then later make it possible for every pet I think.

Also seems like I'll have to 'remove' the pets from your shoulders before logout or else they will become permanent entities, but that is just a theory from looking at the decompiled code.

from echopet.

MinecraftAdmin avatar MinecraftAdmin commented on September 27, 2024

Even though something like a wither would look super derpy, being able to mount a silverfish or those small endermites, or even better, vexes would looks fabulous :3

Also like the spawning/despawning on login/logout should take care of the "removal" shouldn't it?

from echopet.

Arnuh avatar Arnuh commented on September 27, 2024

The whole shoulder thing adds an NBTTagCompound to the player class, and on logout does a spawnXXX. Which calls spawnEntityFromShoulder and does world.addEntity based off that NBTTagCompound data provided creating a whole new mob.(Which also means I have to remove the pet when mounting it on a players shoulder)

I should be able to stop minecraft from spawning the entity with SpawnReason.SHOULDER_ENTITY incase I don't have a way to convert it properly back to a pet.

from echopet.

Arnuh avatar Arnuh commented on September 27, 2024

I made some progress on this a couple days ago where I got the parrot mounted on my shoulder. I tried a few other mobs and unless I messed up something it doesn't seem to work, I don't know exactly why it doesn't work but.. I'll try and see.

Haven't spent much time on EchoPet for last bit so I don't know when I'll be able to release the shoulder mounting.

Here is the pic I took

Also my theory that it'll spawn the pet as a real entity on logout was true but it wont be a hard thing to work around.

from echopet.

TheIntelloBox avatar TheIntelloBox commented on September 27, 2024

Will you add it ? :)

from echopet.

Arnuh avatar Arnuh commented on September 27, 2024

Some progress has been made in commits but it likely needs some more work before anyone uses it.

If I'm ever interested I'll look into finishing it after 1.13 and the new 1.13 mobs are added.

from echopet.

johngonole avatar johngonole commented on September 27, 2024

yea the parrot feature would be super awesome. I can see a lot of players liking that pet just for that feature.

from echopet.

andrewkm avatar andrewkm commented on September 27, 2024

From my testing @Arnuh It seems that the LEFT_SHOULDER and RIGHT_SHOULDER variants do not show up in the pet menu.

I can however toggle them.

Seems to work fine with /pet parrot:LEFT_SHOULDER
However, if you /pet remove - the parrot stays glitched on your shoulder (visual glitch that is fixed with a relog back to the server.)

I'd say it would be nice to add someway for players to find out that you can select the left and right shoulder options without knowing about them.

Otherwise however, this looks implemented and could be closed :)

from echopet.

andrewkm avatar andrewkm commented on September 27, 2024

Ok scratch that, there does seem to be quite a few problems here.
Many glitches, many appearing/dissappearing parrots.
Sometimes two appear on your shoulders, sometimes one. Sometimes two with one following.
Impossible to remove as well without server restart, more than visual, etc.

If you'd like a full in depth report one day let me know.
Doesn't seem too important to fix, but do let me know if you're ever working on this and I'll get to it.

from echopet.

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.