Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-138653

Player's passenger rotation offset when a the horse

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13.2
    • None
    • Minecraft version: Bug on all of them (Tested on 1.12.2, 1.13, 1.13.2)

      Operating system: Windows 10 PRO

      Java version: 1.8.0_181

       
    • Unconfirmed

      How I made the backpack

      I've created a simple plugin that puts an armorstand on the player as a passenger, then I've set the armorstand's helmet to an item with the backpack texture (it has some offset so it displays on the player's back).

      To make the armorstand face the same direction as the player I'm updating it's yaw to the player's yaw every time the player moves and every tick. Using this method: https://hastebin.com/mihiyucuvo.cpp

      (I've also tried updating it to the horse's yaw when on the horse but it makes no difference, it returns the same value)

       

      Problem

      When the player is walking on foot everything works fine, but on the horse it looks awful with a really big rotation offset. The passengers get adjusted well if the horse jumps or the player punches.

       

      Problem in general

      Player's passengers have a rotation offset when on a horse.

       

      Here is a video for easier understanding:

      https://www.youtube.com/watch?v=LHNsj6poKlw&feature=youtu.be

            Unassigned Unassigned
            duplxey Nick Tomazic
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: