Comments (9)
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.
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.
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.
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.
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.
Will you add it ? :)
from echopet.
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.
yea the parrot feature would be super awesome. I can see a lot of players liking that pet just for that feature.
from echopet.
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.
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)
- PetWardens disappear. HOT 5
- Support multiple riders on a pet HOT 1
- Allow us to set different colored shulkers.
- Update Pet Selector to use universal item config layout
- Error when trying to change the Llama Pet into it's baby form
- Add Camels to 1.19.3 HOT 4
- Remove Spigot support in favor of Paper HOT 3
- 1.19.4 support not functioning. HOT 1
- Cannot change cat type anymore. HOT 3
- Implement cat "laying"
- Support Folia
- Black/Red cat type not accepted when spawned via commands. HOT 5
- Support 1.20/1.21 HOT 8
- Child permissions no longer being applied (?) HOT 1
- Support 1.20.2 HOT 2
- Problem with accents
- Caused by: java.lang.NullPointerException: Cannot invoke "org.bukkit.entity.Player.getName()" because the return value of "com.dsh105.echopet.compat.api.entity.pet.IPet.getOwner()" is null
- Error loading pet data - Cannot invoke "String.equalsIgnoreCase(String)" because "input" is null HOT 1
- Deprecated Event Usage in EchoPet: EntityDismountEvent HOT 2
- Properly handle cancelling of addPassenger HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echopet.