Mob filter not working in 1.20.1?
Burgersim opened this issue ยท 3 comments
Hi there, I'm really not sure what to do, I set up the Filter, like I thought I should, but it seems everything is still spawning just like before. Is there something I missed about the syntax? I also don't seem to be getting any extra output, although I set the loglevel to TRACE, so no idea how to troubleshoot this at the moment.
This is my current mobfilter.yaml, I'm basically trying to disable every vanilla minecraft mob, except for the ender dragon and warden (I think):
#
# SAMPLE CONFIGURATION - uncomment and edit
#
rules:
- name: No Creepers Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:creeper]
- name: No Allay Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:allay]
- name: No Axolotl Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:axolotl]
- name: No Bats Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:bat]
- name: No Bees Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:bee]
- name: No Blazes Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:blaze]
- name: No Camels Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:camel]
- name: No Cats Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:cat]
- name: No Cave Spiders Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:cave_spider]
- name: No Chickens Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:chicken]
- name: No Cod Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:cod]
- name: No Cows Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:cow]
- name: No Dolphins Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:dolphin]
- name: No Donkeys Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:donkey]
- name: No Drowned Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:drowned]
- name: No Elder Guardians Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:elder_guardian]
- name: No Enderman Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:enderman]
- name: No Endermite Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:endermite]
- name: No Evoker Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:evoker]
- name: No Foxes Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:fox]
- name: No Frogs Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:frog]
- name: No Ghasts Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:ghast]
- name: No Giants Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:giant]
- name: No Glow Squid Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:glow_squid]
- name: No Goats Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:goat]
- name: No Guardian Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:guardian]
- name: No Hoglins Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:hoglin]
- name: No Horses Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:horse]
- name: No Husks Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:husk]
- name: No Illusioner Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:illusioner]
- name: No Llamas Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:llama]
- name: No Magma Cubes Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:magma_cube]
- name: No Mooshrooms Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:mooshroom]
- name: No Mules Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:mule]
- name: No Ocelots Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:ocelot]
- name: No Pandas Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:panda]
- name: No Parrots Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:parrot]
- name: No Phantoms Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:phantom]
- name: No Pigs Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:pig]
- name: No Polar Bears Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:polar_bear]
- name: No Pufferfish Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:pufferfish]
- name: No Rabbits Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:rabbit]
- name: No Ravagers Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:ravager]
- name: No Salmon Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:salmon]
- name: No Sheep Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:sheep]
- name: No Silverfish Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:silverfish]
- name: No Skeleton Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:skeleton]
- name: No Skeleton Horses Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:skeleton_horse]
- name: No Slimes Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:slime]
- name: No Sniffers Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:sniffer]
- name: No Spiders Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:spider]
- name: No Squids Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:squid]
- name: No Strays Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:stray]
- name: No Striders Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:strider]
- name: No Tadpoles Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:tadpole]
- name: No Trader Llamas Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:trader_llama]
- name: No Tropical Fish Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:tropical_fish]
- name: No Turtles Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:turtle]
- name: No Vexes Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:vex]
- name: No Vindicators Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:vindicator]
- name: No Witches Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:witch]
- name: No Wither Skeletons Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:wither_skeleton]
- name: No Wolves Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:wolf]
- name: No Zoglins Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:zoglin]
- name: No Zombies Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:zombie]
- name: No Zombie Horses Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:zombie_horse]
- name: No Zombie Villagers Ever
what: DISALLOW_SPAWN
when:
entityId : [minecraft:zombie_villager]
#
# DOCUMENTATION
#
#
# The top-level 'rules' configuration element contains a list of filtering rules that are checked to see whether
# a new mob should be allowed to spawn.
#
#
# Each rule has three keys:
# name - A human-readable name for the rule, useful for documentation and debugging.
# what - Indicates what to do when the rule matches. Must be DISALLOW_SPAWN or ALLOW_SPAWN.
# when - A list of conditions that must be true in order for the rule to match.
#
# The 'when' section provides a set of conditions that must all be true in order for the rule to be a match.
# It may contain any of the following keys:
#
# spawnGroup
# List of net.minecraft.entity.SpawnGroup values, such as MONSTER or CREATURE. The condition is true when
# the mob to be spawned is in one of the listed groups.
#
# entityId
# List of entity ids, e.g. 'minecraft:zombie'. The condition is true when the id of the mob to be spawned is
# in the list.
#
# blockX
# blockY
# blockZ
# List of two integers specifying a range. True when the mob's spawning position on the given axis (X, Y or Z)
# is within the provided range. 'MIN' may be used for the first value and 'MAX' may be used for the second.
#
# worldName
# List of world names, e.g., 'My World'. True if mob is spawning in a listed world. Useful if you need
# to limit mob filtering to specific worlds.
#
# dimensionId
# List of dimension identifiers, e.g., 'minecraft:overworld'. True if mob is spawning in a listed dimension.
#
# biomeId
# List of biome identifiers, e.g., 'minecraft:ocean'. True if mob is spawning in a listed biome.
#
# blockId
# List of block identifiers, e.g., 'minecraft:cobblestone'. True if mob is spawning on a listed block type.
#
# lightLevel
# Two integers between 0 and 16. True if mob is spawning in a lightLevel within the range.
#
# timeOfDay
# Two integers between 0 and 24000. True if mob is spawning at a timeOfDay within the range.
#
#
# NOTES
#
# Filter rules are processed in order and processing stops as soon as a matching rule is found. This means you can
# put blanket exclusions at the top of your rules list, e.g.,
#
# rules:
# - name: Always do normal spawning in Nether and End
# what: ALLOW_SPAWN
# when:
# dimensionId: ['minecraft:nether', 'minecreate:the_end']
#
# ...more rules
#
#
# logLevel
# This sets log4j logging level for the mod. Set to 'DEBUG' to log each time a spawn is disallowed.
# Set to 'TRACE' to see detailed logging on rule evaluation. Be careful - this can quickly fill up your logfiles.
logLevel: TRACE
But I still see quids, rabbits, creepers and all sorts of stuff spawning on my server... Thanks in advance for the help
I realized my syntax was not exactly right, once I fixed that it seems to work now ^^*
very sorry, but it seems it is not working after all, just encountered some bees and rabbits again, the yaml should be fine now, ran it through a parser as well
there were also sheep, so it kind of seems like it might not be working on peaceful mobs? but quids seem to stop spawning... I don't get it
please go to the discord channel for support
https://discord.pcal.net/