InControl failing to block squid spawns
turabian-luvr opened this issue · 1 comments
I've tried both of the following variations on rules in spawn.json intended to block squid from spawning everywhere except Ocean, Deep Ocean, and Frozen Ocean biomes, using InControl 1.12-3.9.16.
1:
[
{
"mob": "minecraft:squid",
"result": "deny"
},
{
"biome": ["minecraft:ocean", "minecraft:deep_ocean", "minecraft:frozen_ocean"],
"mob": "minecraft:squid",
"result": "default"
}
]
2:
[
{
"biome": ["minecraft:plains", "minecraft:desert", "minecraft:extreme_hills", "minecraft:forest", "minecraft:taiga", "minecraft:swampland", "minecraft:river", "minecraft:hell", "minecraft:sky", "minecraft:frozen_river", "minecraft:ice_flats", "minecraft:ice_mountains", "minecraft:mushroom_island", "minecraft:mushroom_island_shore", "minecraft:beaches", "minecraft:desert_hills", "minecraft:forest_hills", "minecraft:taiga_hills", "minecraft:smaller_extreme_hills", "minecraft:jungle", "minecraft:jungle_hills", "minecraft:jungle_edge", "minecraft:stone_beach", "minecraft:cold_beach", "minecraft:birch_forest", "minecraft:birch_forest_hills", "minecraft:roofed_forest", "minecraft:taiga_cold", "minecraft:taiga_cold_hills", "minecraft:redwood_taiga", "minecraft:redwood_taiga_hills", "minecraft:extreme_hills_with_trees", "minecraft:savanna", "minecraft:savanna_rock", "minecraft:mesa", "minecraft:mesa_rock", "minecraft:mesa_clear_rock", "minecraft:void", "minecraft:mutated_plains", "minecraft:mutated_desert", "minecraft:mutated_extreme_hills", "minecraft:mutated_forest", "minecraft:mutated_taiga", "minecraft:mutated_swampland", "minecraft:mutated_ice_flats", "minecraft:mutated_jungle", "minecraft:mutated_jungle_edge", "minecraft:mutated_birch_forest", "minecraft:mutated_birch_forest_hills", "minecraft:mutated_roofed_forest", "minecraft:mutated_taiga_cold", "minecraft:mutated_redwood_taiga", "minecraft:mutated_redwood_taiga_hills", "minecraft:mutated_extreme_hills_with_trees", "minecraft:mutated_savanna", "minecraft:mutated_savanna_rock", "minecraft:mutated_mesa", "minecraft:mutated_mesa_rock", "minecraft:mutated_mesa_clear_rock"],
"mob": "minecraft:squid",
"result": "deny"
}
]
Squid are still spawning in rivers as before. As a test, I used a similar method to (2) to prevent a variety of passive mobs spawning in jungles, and it worked fine:
[
{
"mob": ["minecraft:cow", "minecraft:sheep", "minecraft:pig", "minecraft:chicken"],
"biometype": "JUNGLE",
"result": "deny"
}
]
Even though it's obviously very cumbersome, I don't understand why the squid rule isn't working.
Update —
At least one thing in the OP was simply incorrect and my fault: misunderstanding how the rules would be applied, I put the 'deny' rule before the rule to allow squid spawns, which simply denied all squid spawns and didn't evaluate any subsequent conditions.
No permutation of the "biome" method ever worked for me, so I'm leaving the issue open, but this did:
{
"mob": "minecraft:squid",
"biometype": "OCEAN",
"result": "default"
},
{
"mob": "minecraft:squid",
"result": "deny"
}