Can't make sheeps ride players.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

krainser

Member
Jan 27, 2017
60
3
3
Argentina
Skript Version: 2.2dev23
Skript Author: Bensku
Minecraft Version: 1.10.2
---
Full Code:

code_language.skript:
command /title <text>:
    trigger:
        kill the passengers of the player
        spawn a sheep at player's location
        make the spawned sheep ride the player
        set the displayname of the last spawned sheep to coloured "%arg-1%"

Errors on Reload: No

Console Errors: No

Other Useful Info: I'd like to make a invisible sheep with a custom name to ride player, to make something like Titles, texts that will be seen by other players.

The sheep doesnt ride me, just stand where I execute the command (but if i modify a bit the code I can ride it without problems). Buttt, when i kill the sheep the drops spawn in my head, like if she is actually riding me but it's buggy. I search in docs and forums, nothing related

Addons using (including versions):
skRayFall 1.9.7 , SkQuery 1.10 , TuSKe 1.7.4


Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? Wait betwen effects.


bump 27/3/2017 01:12
[doublepost=1490623019,1490496515][/doublepost]bump
 
If the sheep seems to be riding your head but isn't visually, that's likely due to the passenger rendering bug that existed from 1.9 - 1.10. It was a bug that made passengers of entities render as if they were still standing where they were when the mounting took place, and it was only finally fixed in 1.11. I can't be 100% sure of that being your issue, but it certainly sounds like it and the best fix is to update your server (you will always have more issues and be missing out on more stuff on lower versions).

This plugin is meant to resolve the issue, I used it back when my server was on 1.10 but I still seemed to have the issue occasionally, and it also sent a really annoying "This server is using MountFix!" message to players on join, which is pretty damn lame of a plugin to do. I had to filter out that message with MundoSK packets, but ended up just removing the plugin when it didn't fully fix the issue anyways.
 
Status
Not open for further replies.