Skip to content

[Bug] Spawn Proofer and soul sand #2056

Closed

Description

@rumpelchita

Describe the bug

Hello! Spawn Proofer does not work with soul sand. Stone slabs are not placed. Can this be realizable? Thanks!

Steps to reproduce

Everything is described in the bug

Meteor Version

0.4.7+

Minecraft Version

1.18.1

Operating System

Windows

Before submitting a bug report

  • This bug wasn't already reported.
    (I have checked every bug report on github)

  • This is a valid bug.
    (I am able to reproduce this on the latest dev build)

Activity

  1. changed the title [-][Bug] [/-] [+][Bug] Spawn Proofer and soul sand[/+] on Feb 15, 2022
  2. miassassin commented on Apr 30, 2022

    @miassassin

    I fixed this by adding this last line into the middle of this blockutils command.

    public static MobSpawn isValidMobSpawn(BlockPos blockPos, boolean newMobSpawnLightLevel) {
    int spawnLightLimit = newMobSpawnLightLevel ? 0 : 7;
    if (!(mc.world.getBlockState(blockPos).getBlock() instanceof AirBlock) ||
    mc.world.getBockState(blockPos.down()).getBlock() == Blocks.BEDROCK) return MobSpawn.Never;

        if (mc.world.getBlockState(blockPos.down()).getBlock() == Blocks.SOUL_SAND) return MobSpawn.Potential;
    
  3. gigglingbed commented on Apr 30, 2022

    @gigglingbed
    Member

    it's because soul sand isn't a full block

  4. sussyboiiii commented on Jun 10, 2022

    @sussyboiiii

    I fixed this by adding this last line into the middle of this blockutils command.

    public static MobSpawn isValidMobSpawn(BlockPos blockPos, boolean newMobSpawnLightLevel) { int spawnLightLimit = newMobSpawnLightLevel ? 0 : 7; if (!(mc.world.getBlockState(blockPos).getBlock() instanceof AirBlock) || mc.world.getBockState(blockPos.down()).getBlock() == Blocks.BEDROCK) return MobSpawn.Never;

        if (mc.world.getBlockState(blockPos.down()).getBlock() == Blocks.SOUL_SAND) return MobSpawn.Potential;
    

    could you describe where to put this code please?

  5. miassassin commented on Jun 28, 2022

    @miassassin

    @sussyboiiii Sorry for the delay. Actually my previous fix wasn't the best as it was laying the spawn proof block regardless of the light level on the soul sand. I've fixed this again with the following edit and it now considers the light level. This edit needs to be made to blockutils.java. This edit is under the public function "static mobspawn" This edit is within the second if statement.

    Soul sand should be excluded from the fullcube check as it is spawnable despite being a partial cube and that is how I handled the fix.

    if (!topSurface(mc.world.getBlockState(blockPos.down()))) {
    if (mc.world.getBlockState(blockPos.down()).getCollisionShape(mc.world, blockPos.down()) != VoxelShapes.fullCube() && mc.world.getBlockState(blockPos.down()).getBlock() != Blocks.SOUL_SAND) return MobSpawn.Never;
    if (mc.world.getBlockState(blockPos.down()).isTranslucent(mc.world, blockPos.down())) return MobSpawn.Never;
    }

    The key edit is "&& mc.world.getBlockState(blockPos.down()).getBlock() != Blocks.SOUL_SAND"

    I've tested it and it is working. It also fixes the same issue inside light overlay.

  6. Gingerbeard5773 commented on Jun 3, 2025

    @Gingerbeard5773
    Contributor

    Do mobs even spawn on soulsand? its not a solid block technically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions