so like this?
# Configuration file
# For details, please check https://github.com/oldjunyi/NoMobSpawningOnTrees/wiki
mob:pig, mob:cow, mob:sheep
woodlogs # This line disables mob spawning on all types of wood logs.
block:minecraft:brown_mushroom_block || block:minecraft:red_mushroom_block
# The above line disables mob spawning on mushroom blocks.
# Extra spawning tries per tick. This will only applies to hostile mobs.
# The capacity is the maximum (approximate) number of creatures can exist near the player.
# Set -1 to use the default value, which is: monster(70), animal(10), ambient(15), water(5)