Minecraft Data Packs / Server Utility

Mob blacklist - datapack

  • check_circle Functions
  • 2,693 views, 4 today
  • 161 downloads, 0 today
  • 11
  • 9
  • 9
Catfoolyou's Avatar Catfoolyou
Level 48 : Master Engineer
34
This utility datapack lets you control what mobs are allowed to spawn via a blacklist (main.mcfunction).



The mob names work the same way as the names used for the /summon command.
For example, to blacklist a mooshroom this is the command you will put in the mcfunction:

tp @e[type=mooshroom] ~ -512 ~

for multiple entities the command go in a list, like this:

tp @e[type=zombie] ~ -512 ~
tp @e[type=villager] ~ -512 ~
tp @e[type=zombie_villager] ~ -512 ~


Essentially, this datapack *disables* mobs, as opposed to despawning, killing, or otherwise deleting them completely from the world. Any mobs summoned and then blacklisted will despawn upon reloading the game.
CompatibilityMinecraft 1.18
Tags

Create an account or sign in to comment.

1
05/03/2023 12:45 pm
Level 1 : New Miner
tupuzbik
tupuzbik's Avatar
version 1.19 ?
1
05/07/2023 12:21 pm
Level 48 : Master Engineer
Catfoolyou
Catfoolyou's Avatar
Probably...
1
12/09/2021 4:17 pm
Level 38 : Artisan Creeper Hugger
HomelessPetey
HomelessPetey's Avatar
This would be so useful for servers!
1
12/09/2021 1:11 pm
Level 48 : Master Fox
The OG Kinder Jar Kins
The OG Kinder Jar Kins's Avatar
OMG IVE BEEN NEEDING THIS FOR SO LONG!!!!!!!!!!!!!!!!!!!!!!!!!
1
12/09/2021 4:36 am
Level 31 : Artisan Engineer
MadOliveGaming
MadOliveGaming's Avatar
Have you ever considered adding the actual ability to add and remove blacklisted mobs from inside the game? Because right now the user has to basically write all the code for the datapack themselves
1
12/09/2021 4:36 pm
Level 48 : Master Engineer
Catfoolyou
Catfoolyou's Avatar
Sorry, I don't think I cant get anything like that in. Great idea though.
1
12/07/2021 7:39 pm
Level 1 : New Miner
wallfllwr
wallfllwr's Avatar
Hello, I'm sorry to bother you, but I'd really like to use this datapack, however I'm not quite sure how to use it. I know how to install datapacks, but this one in particular confuses me.

I'm used to ones where I can just run a /function and it works but this one seems to be different, could you maybe explain how to use it?

Again I'm sorry to bother you, but I'm just not understanding how this one works. 😅
2
12/08/2021 3:03 pm
Level 48 : Master Engineer
Catfoolyou
Catfoolyou's Avatar
It runs automatically, basically executing the commands you put in every second. Don't worry, it won't lag on low end PCs. the commands are put in data/hostile/main.mcfunction. Sorry that I didn't clarify in the description. Hope this helps.
1
12/08/2021 3:46 pm
Level 1 : New Miner
wallfllwr
wallfllwr's Avatar
Thank you for taking the time to explain it to me! That makes much more sense now! Excited to get this up and running in my new save, sometimes I wanna play on 'peaceful' but still want to have to worry about hunger and things like that, so this will be very useful for me.

Again, thank you for sharing this with us, I'm sure this will come in handy for a lot of people. 💜
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome