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

Cactus generation checks are always the base block instead of offset blocks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w43a, Minecraft 17w43b, Minecraft 18w02a, Minecraft 18w08b, Minecraft 18w09a, Minecraft 18w20c, 1.14.4, 19w46a, 1.15 Pre-release 3
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      World generation

      Description

      The bug

      The cactus generation used in the world decoration uses always the base block for the checks instead of the vertical offset blocks. This means it can replace blocks with offset cactus blocks and they can be placed next to solid blocks.

      How to reproduce

      Create a Superflat world with the following preset

      minecraft:stone,minecraft:sand,2*minecraft:air,minecraft:stone;minecraft:desert;decoration
      

      → Some cactus blocks are placed in the stone layer directly and directly next to stone

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The method net.minecraft.world.gen.feature.WorldGenCactus.generate(World, Random, BlockPos) always uses the base position when testing if an vertical offset cactus can be placed. Additionally it does not test if the block is air for the offset cactus blocks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: