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

Cactus (above the base) can generate next to solid blocks, and can replace blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 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, 20w13b, 20w17a, 1.16.5, 1.17.1
    • Confirmed
    • World generation

      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.

            Unassigned Unassigned
            marcono1234 Marcono1234
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: