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

Pufferfish hitbox incorrect when reloading world


    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w05a
    • 1.16.3, 20w46a
    • None
    • Community Consensus
    • Hitboxes

      Set up a pufferfish player detector by getting a pufferfish in a minecart, in 2 blocks of water pushing it into a pressure plate on a fence post for alignment (the cart should end up halfway between a top slab and the pressure plate; the slab being necessary to stop the fence from connecting to it). When a player is near, the fish puffs up to trigger the plate, then shrinks when they leave and the plate turns off. But if you unload the world and reload it, when it loads in, the pressure plate will be pressed as though the fish's hitbox is puffed up even though the PuffState is 0. If the fish's puff is triggered again and then it returns to its state 0, it will turn off the pressure plate ("resetting" the hit box, I think).

      The hitbox should be based on the puff state, so when the world loads and it's in PuffState 0, it should have a small hitbox from the start, rather than needing to be puffed up and deflated again to reset that.

        1. 2020-09-30_16.25.06.png
          1.31 MB
        2. pufferfish_01.png
          127 kB
        3. pufferfish_02.png
          108 kB
        4. pufferfish_03a.png
          106 kB
        5. pufferfish_03b.png
          109 kB

            Unassigned Unassigned
            IceMetalPunk Daniel Burnett
            3 Vote for this issue
            3 Start watching this issue