hello, i am making a mod pack and i am trying to make it so that peaceful mobs don't spawn, if someone could please let me know of a mod that will do this, it would be very appreciated, and if i would need to go into some code, could someone please link me a tutorial. thank you in advance.
how would i make it so that the only mobs that spawn are the modded ones and not peaceful mobs like pigs and cows and sheep?
If you just want to disable all peaceful mobs, I think this would work:
mobtype:animal, mobtype:ambient, mobtype:water
The second entry covers bats (and possibly similar creatures added by other mods, though I'm not specifically aware of any), the third covers squids (and sufficiently similar creatures added by other mods, but probably not Mo' Creatures fish types - I checked in jd-gui and they don't extend EntityWaterMob)
If you only want to disable vanilla peaceful mobs but allow some from mods, you'd probably need to do something like this:
mob:pig, mob:cow, mob:sheep
and add entries to the list for the mobs you want to disable.
If you just want to disable all peaceful mobs, I think this would work:
mobtype:animal, mobtype:ambient, mobtype:water
The second entry covers bats (and possibly similar creatures added by other mods, though I'm not specifically aware of any), the third covers squids (and sufficiently similar creatures added by other mods, but probably not Mo' Creatures fish types - I checked in jd-gui and they don't extend EntityWaterMob)
If you only want to disable vanilla peaceful mobs but allow some from mods, you'd probably need to do something like this:
mob:pig, mob:cow, mob:sheep
and add entries to the list for the mobs you want to disable.
so this is my config file where would i put the entry for vanilla mob spawns
# Configuration file
general {
# For details, please check https://github.com/oldjunyi/NoMobSpawningOnTrees/wiki
S:blacklistRules <
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.
D:extraSpawningTries=0.0
# 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)
I:spawnCapacityAmbient=-1
I:spawnCapacityAnimal=1
I:spawnCapacityMonster=-1
I:spawnCapacityWater=-1
}
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.
D:extraSpawningTries=0.0
# 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)
I:spawnCapacityAmbient=-1
I:spawnCapacityAnimal=1
I:spawnCapacityMonster=-1
I:spawnCapacityWater=-1
}
hello, i am making a mod pack and i am trying to make it so that peaceful mobs don't spawn, if someone could please let me know of a mod that will do this, it would be very appreciated, and if i would need to go into some code, could someone please link me a tutorial. thank you in advance.
by the way, this needs to be for version 1.10.2
I think this mod will do what you want:
https://minecraft.curseforge.com/projects/no-mob-spawning-on-trees
surprisingly i already had the mod, but i never knew it could do that. thank you for the help
how would i make it so that the only mobs that spawn are the modded ones and not peaceful mobs like pigs and cows and sheep?
Edit: i tried to look on the github page but couldn't figure it out
If you just want to disable all peaceful mobs, I think this would work:
The second entry covers bats (and possibly similar creatures added by other mods, though I'm not specifically aware of any), the third covers squids (and sufficiently similar creatures added by other mods, but probably not Mo' Creatures fish types - I checked in jd-gui and they don't extend EntityWaterMob)
If you only want to disable vanilla peaceful mobs but allow some from mods, you'd probably need to do something like this:
and add entries to the list for the mobs you want to disable.
so this is my config file where would i put the entry for vanilla mob spawns
# Configuration file
general {
# For details, please check https://github.com/oldjunyi/NoMobSpawningOnTrees/wiki
S:blacklistRules <
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.
D:extraSpawningTries=0.0
# 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)
I:spawnCapacityAmbient=-1
I:spawnCapacityAnimal=1
I:spawnCapacityMonster=-1
I:spawnCapacityWater=-1
}
As a separate line inside the blacklistRules entry.
so like this?
# Configuration file
general {
# For details, please check https://github.com/oldjunyi/NoMobSpawningOnTrees/wiki
S:blacklistRules <
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.
D:extraSpawningTries=0.0
# 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)
I:spawnCapacityAmbient=-1
I:spawnCapacityAnimal=1
I:spawnCapacityMonster=-1
I:spawnCapacityWater=-1
}