The in control! mod allows you to disable any mob you want. In minecraft 1.15+ you can disable phantoms with /gamerule doInsomnia false
Minecraft
Welcome to the Minecraft community on Lemmy and Kbin!
The home for all posts related to the Minecraft franchise: from the classic game to the mobile ports, mods, adventure games, merchandise and similar!
Official Lemmy.world server available!
Lemmy.world hosts an official server that welcomes all players to contribute and have fun:
Minecraft Version: 1.20.x
Address: minecraft.lemmy.world
Please make sure you read our rules before posting.
Rules:
Rules can be clicked on to be expanded.
1: Treat all users with respect.
Bullying, threathening, doxxing, or toherwise hostile behaviors with any of our users will not be tolerated. Be civil, have fun.
2: Posts must be related to the Minecraft franchise.
This includes the main game, titles like Dungeons, fan art, wiki pages, toys, new feature votes, and similar content.
3: No advertising.
If you want to share a product you're a manufacturer or seller of, please contact the moderation team first. Affiliate links to online shopping stores or affiliate coupon codes are not allowed.
4: No piracy.
Links or discussions about cracked versions of games, unauthorized copies of copyrighted material and other similar piracy-related content are not allowed.
5: No NSFW or adult content.
This community is inclusive to users of all ages. Keep in mind Minecraft attracts children and adults alike. Therefore, no NSFW content is allowed.
6: No low-effort meme content.
Memes are allowed, and so are comics or other fan creations. However, low-effort reposts and otherwise overused memes will be removed.
Reddit reposts are allowed.
Reddit reposts are allowed, but you need to include the tag [Reddit] in the title.
Related communities:
-
PC Gaming: [email protected]
-
Games: [email protected]
-
PC Handhelds: [email protected]
-
Minecraft modding: [email protected]
Set up a few repeating command block in your spawn chunks that go "/kill @e[type=MOBNAME]". Manually make commands for every mob you want to deactivate and then turn them on.
This NEEDS to be in your worldspawn chunks as those are permanently loaded.
Replace MOBNAME with the mobs well, name.
This will cause mob loot to drop. A better solution would be to teleport the mobs below the map: https://gaming.stackexchange.com/questions/272147/how-do-i-kill-mobs-using-kill-without-them-dropping-loot
Yea but also more to type in and I assume OP might be slightly command illiterate
It's not like it really matters whether you type:
/kill @e[type=MOB]
or
/tp @e[type=MOB] ~ -100000 ~
You can easily copy-paste the command itself.
Thanks. This did technically stop the monsters from spawning, kind of. They still spawn, but teleport beneath the world within milliseconds, but long enough for me to see them appear and immediately disappear. So I tested this in a new creative world and set the time to midnight, and you can see dozens of monsters spawning on the screen and immediately flashing away. So the world is just full of flashing monsters everywhere and extremely distracting.
You've just given me a great idea for a Halloween game on the family kids server though :D
Great! Happy to have inspired you without even meaning to 😄
You can turn off hostile mobs in Survival (any difficulty) with a Redstone build called a Mob Switch. It's a little technical but doesn't seem exceptionally complex but I've never built one myself. Checking YouTube there's video tutorials on how to build them.
Skimming the comments: If you can get one working this should work better than the Command Block teleporting as this does shut down spawns rather than just hide them shortly after they spawn in.
EDIT: This is the tutorial I reviewed for stating that they're not too complex: https://www.youtube.com/watch?v=fi_3Xn16OKU
This sounds really good, and I would do it, but I am trying to disable monsters without disabling all mobs. If I wanted to disable mobs I would just use /gamerule DoMobSpawning false
Edit: Well, I watched through the video and near the end, the guy was flying around the world, and there were still some packs of animal mobs wandering the world. I don't know if they spawned after he activated the mob switch or if they were already spawned prior or what. But if animals still stick around, then he's just being confusing; because through the entire video he keeps saying that the contraption turns of "Mob" spawning, not "Monster" spawning. Animals are classified as mobs too in Minecraft terminology.
Just double checked and the 70 mob cap referenced in the mob-switch is the hostile mob cap. Passive and ambient mobs have separate caps so this should only turn off hostile mobs. However, in checking I found there's a few things that a simple mob-switch like this won't do: Prevent Raids if you somehow get Bad Omen Prevent manual spawning of the Wither Prevent hostile mobs in the Nether and End (you'd need separate switches in each dimension) Prevent spawners from spawning hostile mobs Prevent hostile mobs caused my lightning strikes (eg Skeleton Horsemen & Villagers converted to Witches)
Source: https://techmcdocs.github.io/pages/GameMechanics/MobCap/
Ok thanks. I think I'll do this then. I shouldn't get bad omen because Pillager's shouldn't be spawning anyway. One problem though that I forgot about for some reason: The world I've already created has no strongholds in it because I disabled the generation of structures. As for the nether and end: I wasn't planning on visiting the other dimensions in this world.
Hrm, I have an idea that may work if you want to keep this Stronghold-less world: Use Creative/Command Blocks to spawn 80 zombies or skeletons, give them all names via nametags, and put them in a prison in world-spawn. This should work the same as a Mob Switch except there won't be an easy On/Off but it's sounding like you're after always-off anyway so that shouldn't be too big a problem.
This can be done for servers(at least on the java version)
You'd have to change a setting in server.properties