I am creating an adventure map that involves escaping from a castle with a lot of dark places to explore and discover. Since its all made in a flat world, hostile mobs can easily spawn in the insides of my castle and I want to have the game running in peaceful mode. However, I would also like to have some monsters set in certain places for the player to encounter and fight. Is there a way I can do this without having to switch the difficulty and deal with loads and loads of mobs spawning around the rooms of the castle? Will add-ons solve my problem? How?
TL;DR: Basically, I want make hostile mobs to be seen as passive so they can be placed even in peaceful mode, still attack the player but not spawn naturally in dark places.
To make it so mobs do not spawn naturally all you have to do is: /gamerule doMobspawning false
And if you want it always day: /time set day & /gamerule doDaylightCycle false
However, if you want hostile mobs so be able to spawn in peaceful you would probably have to change the behavior of peaceful mobs (like chickens, sheep, etc.) and change their texture and model to a hostile mob.
To spawn them in all you need to do is use dispensers and put the mob's spawn egg and power it with redstone, or use: /summon <mob> , or you could even use monster spawners; the blocks that spawn spiders and skeletons in dungeons.
May I ask why you want the world to stay peaceful?
I am creating an adventure map that involves escaping from a castle with a lot of dark places to explore and discover. Since its all made in a flat world, hostile mobs can easily spawn in the insides of my castle and I want to have the game running in peaceful mode. However, I would also like to have some monsters set in certain places for the player to encounter and fight. Is there a way I can do this without having to switch the difficulty and deal with loads and loads of mobs spawning around the rooms of the castle? Will add-ons solve my problem? How?
TL;DR: Basically, I want make hostile mobs to be seen as passive so they can be placed even in peaceful mode, still attack the player but not spawn naturally in dark places.
To make it so mobs do not spawn naturally all you have to do is: /gamerule doMobspawning false
And if you want it always day: /time set day & /gamerule doDaylightCycle false
However, if you want hostile mobs so be able to spawn in peaceful you would probably have to change the behavior of peaceful mobs (like chickens, sheep, etc.) and change their texture and model to a hostile mob.
To spawn them in all you need to do is use dispensers and put the mob's spawn egg and power it with redstone, or use: /summon <mob> , or you could even use monster spawners; the blocks that spawn spiders and skeletons in dungeons.
May I ask why you want the world to stay peaceful?