Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-46540

Large and medium sized magma cube spawn in less than 3x3x2 areas

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.11.3, 1.12.0, 1.16.0, 1.16.1, 1.16.221 Hotfix, 1.17.41 Hotfix, 1.18.2 Hotfix, 1.18.30, 1.18.31, 1.19.20
    • None
    • Confirmed
    • Multiple
    • 653140

       

      Steps to reproduce :

      1. In the nether, build a 5 tall box (3 tall inside). It works best over a very large lava lake, or inside a spawn proofed nether fortress bounding box.
      2. Inside the box place line of block on the ground and on the ceiling every other block. this should create some sort of 3x1 lanes, with nothing in the middle block.
      3. Step away from the build and wait for mob to spawn, kill them when they spawn, you eventually will get a large and/or medium magma cube in there.

       

      Only small magma cube and other nether creature should be able to spawn in there.

      I've noticed that most of the hitboxes and spawning mechanisms are broken in bedrock, just like spiders spawning in 1x1 area or zombies spawning under trapped doors.

      This is really limiting players in terms of smart mob farm contraptions

       

          [MCPE-46540] Large and medium sized magma cube spawn in less than 3x3x2 areas

          johnnyj1 added a comment -

          Is this being addressed? I’ve spent hours mob proofing my nether hub and highways only to find I’m still having to deal with magma cubes. This makes my ice highway useless. I am on Bedrock 1.19.22 Xbox edition.

          johnnyj1 added a comment - Is this being addressed? I’ve spent hours mob proofing my nether hub and highways only to find I’m still having to deal with magma cubes. This makes my ice highway useless. I am on Bedrock 1.19.22 Xbox edition.

          windwend added a comment - - edited

          Please add the tag "vanilla-parity" to this issue. In Java Edition, slimes and magma cubes always check for the space of a large slime/magma cube, so they never spawn in 2-high areas.


          Reply from GoldenHelmet:

          This report does not meet the requirements for the vanilla-parity label. See https://feedback.minecraft.net/hc/en-us/articles/360015877192-Parity-Requests-and-You-A-Guide

          windwend added a comment - - edited Please add the tag "vanilla-parity" to this issue. In Java Edition , slimes and magma cubes always check for the space of a large slime/magma cube, so they never spawn in 2-high areas. Reply from GoldenHelmet : This report does not meet the requirements for the vanilla-parity label. See https://feedback.minecraft.net/hc/en-us/articles/360015877192-Parity-Requests-and-You-A-Guide

          [Mod] GoldenHelmet added a comment - - edited

          I can confirm from testing that it's not fully fixed in 1.17.41. Magma cubes can still spawn on platforms with 2-block high ceilings (large magma cubes spawn in the floor, or clip through the floor and fall down if the floor is only one block thick). They also spawn in 2-block wide areas with slabs on opposing sides.

          Code diggers have confirmed for me that the magma cube spawn code was in fact updated in 1.17.30 so that magma cubes use the same block collision check function as other mobs.

          The problem now is in the magma_cube.json entity file. The collision box for each size magma cube is given in the component group for that size. However, the spawning function does not check component groups. It only checks the mob data based on the main component section. In that section magma cubes do not have any collision box assigned, so the game uses a hidden default that lets them spawn in areas >= 1.8 high.

          The bug can be fixed by adding the following component to the main "components" section of the magma_cube.json.

                "minecraft:collision_box": {
                  "width": 2.08,
                  "height": 2.08
                },
          

          [Mod] GoldenHelmet added a comment - - edited I can confirm from testing that it's not fully fixed in 1.17.41. Magma cubes can still spawn on platforms with 2-block high ceilings (large magma cubes spawn in the floor, or clip through the floor and fall down if the floor is only one block thick). They also spawn in 2-block wide areas with slabs on opposing sides. Code diggers have confirmed for me that the magma cube spawn code was in fact updated in 1.17.30 so that magma cubes use the same block collision check function as other mobs. The problem now is in the magma_cube.json entity file. The collision box for each size magma cube is given in the component group for that size. However, the spawning function does not check component groups. It only checks the mob data based on the main component section. In that section magma cubes do not have any collision box assigned, so the game uses a hidden default that lets them spawn in areas >= 1.8 high. The bug can be fixed by adding the following component to the main "components" section of the magma_cube.json. "minecraft:collision_box" : { "width" : 2.08, "height" : 2.08 },

          This doesn't seem to be fixed. I have a large 2-tall area dug out in the Nether, and large magma cubes still spawn there all the time. Happy to post screencaps if that helps, but I haven't seen any change in this behavior before/after the release of 1.17.30.

          Chris O'Brien added a comment - This doesn't seem to be fixed. I have a large 2-tall area dug out in the Nether, and large magma cubes still spawn there all the time. Happy to post screencaps if that helps, but I haven't seen any change in this behavior before/after the release of 1.17.30.

          Any word on if this has been fixed with regular slimes? This is certainly a thing that also applies to the regular ones, you can find large ones stuck into the floor in 2 tall areas!

          silentwisperer added a comment - Any word on if this has been fixed with regular slimes? This is certainly a thing that also applies to the regular ones, you can find large ones stuck into the floor in 2 tall areas!

          Draco894 added a comment -

          Affects 1.16.100, or is this working as intended?

          Draco894 added a comment - Affects 1.16.100, or is this working as intended?

          Draco894 added a comment -

          Tested it is the hit box as I have had magma cubes spawn in 2 high space between sea lantern.

          Draco894 added a comment - Tested it is the hit box as I have had magma cubes spawn in 2 high space between sea lantern.

          Draco894 added a comment -

          Large Magma Cube spawning in a 2 high space...either magma blocks are not full blocks and/or Magma Cubes have too small of hit box.

          Draco894 added a comment - Large Magma Cube spawning in a 2 high space...either magma blocks are not full blocks and/or Magma Cubes have too small of hit box.

          Reed Cartwright added a comment - - edited

          Back to this bug report. Magma Cubes are one of the monsters that use their own function to check for block collisions when they spawn. They do not use Monster::checkSpawnRules() that Skeletons, Creepers, Spiders, etc. use. In fact, LavaSlime::checkSpawnRules() only checks for collisions with liquid blocks or if lava slime is obstructed by existing entities.

          I don't know if this is WAI, but large Magma Cubes spawning in 2x2 tunnels is really annoying for players building through basalt deltas.

          One solution to this bug is for LavaSlime::checkSpawnRules() to also call Monster::checkSpawnRules() so the standard block checks are done in addition to the Magma Cube specific ones.

          Please note that if Monster::checkSpawnRules() is used, then LavaSlime::isDarkEnoughToSpawn() will also need to be defined to always return TRUE, otherwise magma cubes will not spawn in high light levels.

          Reed Cartwright added a comment - - edited Back to this bug report. Magma Cubes are one of the monsters that use their own function to check for block collisions when they spawn. They do not use Monster::checkSpawnRules() that Skeletons, Creepers, Spiders, etc. use. In fact, LavaSlime::checkSpawnRules() only checks for collisions with liquid blocks or if lava slime is obstructed by existing entities. I don't know if this is WAI, but large Magma Cubes spawning in 2x2 tunnels is really annoying for players building through basalt deltas. One solution to this bug is for LavaSlime::checkSpawnRules() to also call Monster::checkSpawnRules() so the standard block checks are done in addition to the Magma Cube specific ones. Please note that if Monster::checkSpawnRules() is used, then LavaSlime::isDarkEnoughToSpawn() will also need to be defined to always return TRUE, otherwise magma cubes will not spawn in high light levels.

          Reed Cartwright added a comment - - edited

          Spider spawning is not affected by this bug because the code that allows magacubes to spawn in small areas is specific to magma cubes.

          Buttons only stop spider spawning if the spider's hitbox overlaps the button's collision box. In Prowl's far design, the buttons are not positioned in a way to stop all spider spawns.

          Reed Cartwright added a comment - - edited Spider spawning is not affected by this bug because the code that allows magacubes to spawn in small areas is specific to magma cubes. Buttons only stop spider spawning if the spider's hitbox overlaps the button's collision box. In Prowl's far design, the buttons are not positioned in a way to stop all spider spawns.

            Yodalf Yann
            Votes:
            139 Vote for this issue
            Watchers:
            31 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: