- check_circle Functions
Published Dec 7th, 2021, 12/7/21 6:29 pm
- 2,693 views, 4 today
- 161 downloads, 0 today
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.
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.
Compatibility | Minecraft 1.18 |
Tags |
tools/tracking
5401340
119
mob-blacklist-datapack
Create an account or sign in to comment.
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. 😅
Again, thank you for sharing this with us, I'm sure this will come in handy for a lot of people. 💜