4
Is there a datapack that lets mobs spawn in peaceful without attacking the player?
Peaceful difficulty is nice if you just want to build. But there are a lot of items - gunpowder, ender pearls, blaze rods, etc. - that you can only get from killing mobs. Some items - like string - can be obtained elsewhere but mobs are the primary source thereof.
Is there a data pack that causes mobs to spawn in low light, but they don't attack the player, just like in creative mode?
Is there a data pack that causes mobs to spawn in low light, but they don't attack the player, just like in creative mode?
Create an account or sign in to comment.
6
I just released a lightweight datapack specifically for this type of behavior. You can find it here.
But do they spawn in peaceful difficulty?
As HoboMaggot said, you can't change weather mobs spawn in peaceful difficulty or not it's hardcoded into the game.
You could just use a datapack/repeating command that puts all the hostile mobs into the same team
I have no idea what you just said.
What command should I enter? And how does that command even work to achieve the result I'm looking for?
Also, bear in mind that I'm only looking to have this feature in peaceful mode. The idea of entering a command sounds like it would still require me to be on easy or harder.
What command should I enter? And how does that command even work to achieve the result I'm looking for?
Also, bear in mind that I'm only looking to have this feature in peaceful mode. The idea of entering a command sounds like it would still require me to be on easy or harder.
/team add <custom_team_name>
/team join <custom_team_name> @e[type=!player,type=!<non_hostiles...>]
Example:
/team add Friendly
/team join Friendly @e[type=!player,type=!armor_stand,type=!area_effect_cloud,type=!pig]
By placing mobs in the same team, the monster's AI to attack the other mob is pretty much ignored.
E.g. zombies will not hunt villagers on the same team, endermen on your team won't get aggroed if you look at them
For your 2nd point, that is impossible due to how mob spawning is hardcoded with difficulty. You will need an actual mod to change that