Data Packs Server Utility

Mob blacklist - datapack

  • 3.8k views 2 today
  • save_alt 218 downloads
Compatibility
Minecraft 1.18
Changes include
  • Functions
  • 12
  • 10
  • 9
Catfoolyou
Lvl 49Master System
35
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.

More like this

  Have something to say?

tupuzbik
05/03/2023 12:45 pm
Level 1 : New Miner
version 1.19 ?
1
Catfoolyou
05/07/2023 12:21 pm
Level 49 : Master System
Probably...
1
anonpmc3750024
12/09/2021 4:17 pm
Level 18 : Journeyman Miner
[deleted]
1
Galaxium
12/09/2021 1:11 pm
He/Him • Level 50 : Grandmaster uwu Tank
OMG IVE BEEN NEEDING THIS FOR SO LONG!!!!!!!!!!!!!!!!!!!!!!!!!
1
MadOliveGaming
12/09/2021 4:36 am
Level 34 : Artisan System
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
Catfoolyou
12/09/2021 4:36 pm
Level 49 : Master System
Sorry, I don't think I cant get anything like that in. Great idea though.
1
wallfllwr
12/07/2021 7:39 pm
Level 1 : New Miner
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. 😅
1
Catfoolyou
12/08/2021 3:03 pm
Level 49 : Master System
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.
2
wallfllwr
12/08/2021 3:46 pm
Level 1 : New Miner
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. 💜
1

Welcome