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

Casting issue: Bone meal particles break at high coordinates (floating point precision)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, 1.14.4, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 19w42a, 19w44a, 19w45a, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15 Pre-release 3, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.15, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a
    • Fix Version/s: 20w12a
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Networking, Particles, Rendering
    • Mojang Priority:
      Low

      Description

      The bug

      Particles generated by using bone meal on blocks that can accept it end up losing precision at high enough coordinates, especially beyond 2^24 or 16,777,216 blocks.

      Another floating point precision error which is unrelated to particles can be seen with ore vein generation. While this cannot be easily seen within vanilla bounds it becomes very obvious at high distances with mods and can cause crashes. See here: https://www.reddit.com/r/Minecraft/comments/9u9d4i/floats_minecraft_and_the_far_lands/

      A fix for bone meal can be found here: https://github.com/polgaria/FarLands/blob/19w44a/src/main/java/site/geni/farlands/mixins/client/item/BoneMealItemMixin.java

      A fix for ore generation can be found here: https://github.com/polgaria/FarLands/blob/19w44a/src/main/java/site/geni/farlands/mixins/common/world/gen/feature/OreFeatureMixin.java

        Attachments

        1. 2015-01-20_05.38.18.png
          2015-01-20_05.38.18.png
          347 kB
        2. 2015-01-20_05.40.32.png
          2015-01-20_05.40.32.png
          266 kB
        3. 2019-10-02_16.00.29.png
          2019-10-02_16.00.29.png
          334 kB
        4. 2019-10-02_16.00.46.png
          2019-10-02_16.00.46.png
          542 kB
        5. 2019-10-02_16.00.58.png
          2019-10-02_16.00.58.png
          919 kB
        6. 2019-10-02_16.01.27.png
          2019-10-02_16.01.27.png
          746 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              Awesoman3000 Connor Steppie
              Votes:
              10 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: