mojira.dev
MCPE-46540

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

 

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 😞

 

Related issues

Attachments

Comments

migrated
[media][media]
[Mod] Umija5895M

Not sure if related, but "large slimes" will spawn in a 2-block high area. When that happens they appear stuck in the floor and can't seem to move until attacked enough to break into medium slimes.

migrated

I will add further information to this bug, it has to do something with what the magma cubes are checking for while spawning, they are ignoring spawning rules based on surrounding blocks (therefore they can spawn in a 1x1 spot with other blocks around them) but you can block their spawns to their correct 3x2.5x3 spawning requirement with armor stands, or lava. You should be able to block their spawns with almost any other block in those spaces, such as buttons, signs, trap doors, or other solid blocks.

migrated

I believe that spiders are also effected by this bug, as you can block off a 2x2 spawning location, and if you have a valid 1x1 spot, the spiders will still spawn. here is a screen shot of a design I was attempting, 3x3 platforms with the middle block covered by a button, and also I put signs in the gaps, the spiders seem to spawn on the outer edges of the blocks, partially inside the signs.

racartwright

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.

racartwright

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.

migrated

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.

migrated

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

migrated

Affects 1.16.100, or is this working as intended?

silentwisperer

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!

migrated

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.

GoldenHelmet

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
      },
windwend

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 @unknown:

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

migrated

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.

migrated

(Unassigned)

653140

Confirmed

Multiple

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

1.19.60.24 Preview, 1.17.30.20 Beta, 1.17.30, 1.19.60

Retrieved