Remove Hostile Mobs In Area (June 25, 2020)

  • check_circle Functions
                    • 17
                    • 18
                    • 19
                    avatar ZyRail
                    Level 44 : Master Miner
                    18
                    Remove Hostile Mobs In Area
                    Minecraft v1.16.1 (June 25, 2020)

                    About Data Pack
                    Ever wanted an area that had no hostile Mobs, a safe zone? This datapack uses a book that will create Protection Zones in which hostile mobs will be removed. Each zone is 64 blocks in a radius. So stop placing torches all over that awesome castle and just create a protection zone. The protection zone text can be disable, if you want to hide "Protection Zone" form view, by using the book as well. Mobs that won't be removed are invulnerable mobs, mobs within .6 blocks from a minecart, or mobs within 5 blocks from a boat. I have 5 blocks from boats because the mobs will take damage in a boat if restricted to a closer range due to the speed of ice boats.


                    How To Get The Item

                    Chat Command
                    /trigger protection_book

                    How To Use
                    This book will create Protection Zones in which hostile mods will be teleported to the Void if they are within 64 blocks of the Protection Zone. Just click on the links the the book to create or destroy the zones.

                    To Install
                    Just place the *.zip file at \AppData\Roaming\.minecraft\saves\*world*\datapacks\ don't extract them from the zip file (not needed).

                    Non-Licensed
                    You have the right to share, use, and build upon this datapack for anything you wish, ENJOY!
                    Credithttps://minecraft.tools/en/book.php
                    CompatibilityMinecraft 1.15
                    toMinecraft 1.16
                    Tags

                    9 Update Logs

                    June 25, 2020 : 06/25/2020 10:47:26 amJun 25th, 2020

                    To remove the "old version warning", I had to change the "pack_format" to 5 in the file pack.mcmeta. Minecraft didn't care what value was in there until now for "no reason explained to the community".
                    LOAD MORE LOGS

                    1
                    11/14/2020 2:06 am
                    Level 2 : Apprentice Explorer
                    CalgamingsMC
                    can you make it so that there are smaller protection zone options? 64 by 64 is a bit too large for what I need.
                    1
                    07/08/2020 2:27 pm
                    Level 1 : New Miner
                    Adoul
                    What about zombie piglins? I know they are neutral but they keep spawning in my nether portals and it's very annoying.
                    1
                    06/25/2020 8:49 am
                    Level 1 : New Miner
                    Egamh
                    Is there any chance this will be updated for 1.16/1.16.1 ?
                    If so, is there a timeframe?
                    1
                    06/25/2020 10:40 am
                    Level 44 : Master Miner
                    ZyRail
                    Working on it. The old pack will still work. To remove the warning I will just have to change the "pack_format" to 5 in the file pack.mcmeta. Minecraft didn't care what value was in there until now for "no reason explained to the community".
                    1
                    06/25/2020 10:48 am
                    Level 44 : Master Miner
                    ZyRail
                    Let me know if you still have the warning message, thank you.
                    1
                    04/20/2020 2:02 pm
                    Level 1 : New Miner
                    VincentfiveGame
                    What if you need xp?
                    1
                    03/23/2020 7:49 pm
                    Level 1 : New Miner
                    AldarithVk
                    Is the zone horizontal or spherical?
                    1
                    03/24/2020 9:22 am
                    Level 44 : Master Miner
                    ZyRail
                    Spherical
                    1
                    03/20/2020 4:18 am
                    Level 39 : Artisan uwu
                    KapceRBLX
                    Can I make my version with book crafting?
                    1
                    03/20/2020 10:51 amhistory
                    Level 44 : Master Miner
                    ZyRail
                    Yes you can use any of the coding for your datapack. I created all my datapacks to share and build on. I would like to use FunkyToc's suggestion. The community needs to offer data packs like the ones I have.
                    2
                    03/20/2020 4:08 amhistory
                    Level 56 : Grandmaster Kitten
                    FunkyToc
                    Really cool idea !

                    if you want to drasticly remove lags, you probably should run the loop FROM players, IF a protection totem is near =)
                    2
                    03/17/2020 3:18 pm
                    Level 1 : New Miner
                    maclear1978
                    got to say I love this mod and so does my whole family we play on a privet server for the 6 of us.
                    can you add an option to the book to hide all the tags and show all tags?
                    going to each is a pain!
                    another option would be nice it to be able to adjust the range to reduce the need for too many zones say to cover a large town this may reduce the server load we are running into an issue with too many protected points and the server lagging
                    2
                    03/17/2020 4:07 pm
                    Level 1 : New Miner
                    maclear1978
                    for a quick fix i found editing this line in the on_tick.mcfunction in the functions folder of the mod increased the range to cover a good sized town with 1 point and no server lag

                    # Teleport hostiles to void within 64 blocks of Protection Zone armor stand.
                    execute as @e[type=minecraft:armor_stand,name="Protection Zone"] at @s run tp @e[tag=RHM_Hostile,nbt={Invulnerable:0b},distance=..64] ~ ~-300 ~

                    to

                    # Teleport hostiles to void within 64 blocks of Protection Zone armor stand.
                    execute as @e[type=minecraft:armor_stand,name="Protection Zone"] at @s run tp @e[tag=RHM_Hostile,nbt={Invulnerable:0b},distance=..300] ~ ~-300 ~
                    1
                    03/20/2020 3:45 am
                    Level 44 : Master Miner
                    ZyRail
                    Disabled Feature To Reduce Lag
                    I disabled the feature of not removing Mobs with names. Also changed commands to run from entities instead of armor stands, reduces lag if a lot of protection zone armor stands are in one place.
                    1
                    03/03/2020 7:51 pm
                    Level 1 : New Network
                    CongenialVirus
                    Can this mod interrogate an entity to determine if it is riding a boat or a mine-cart?
                    Because this sounds like THE MOD for nether tunnels. And if it can prevent hostile mobs with nametag nbt or riding a vehicle from being voided. This is a gamechanger!
                    1
                    03/05/2020 2:34 amhistory
                    Level 44 : Master Miner
                    ZyRail
                    Changes Made!
                    I updated the pack for you. Now mobs that won't be removed are invulnerable mobs, mobs within .6 blocks from a minecart, or mobs within 5 blocks from a boat. I have 5 blocks for boats because the mobs will take damage in a boat if moving at high speeds in an ice boat. Let me know if you need the riding in a boat or minecart detection distance adjusted. Enjoy!
                    1
                    02/20/2020 5:58 pm
                    Level 68 : High Grandmaster Technomancer
                    TheAwesomeKielbasa
                    This is very helpful because I've had a lot of problems keeping mobs from spawning in my builds where and don't want them and have previously had to sacrifice mood lighting.
                    1
                    01/05/2020 7:53 pm
                    Level 1 : New Miner
                    woltman
                    This is a really nice datapack. Could I ask for two features, or guidance on how to add them?
                    1. Can the book be made craftable? Preferably from some harder to obtain items - maybe a blaze rod and book?
                    2. Can it be made a one time use item? Maybe when the book is used, a block is placed down that is the center of the mob-free zone, and if the player breaks the block the effect is gone.

                    Thank you for the datapack :D
                    1
                    11/10/2019 9:57 pm
                    Level 1 : New Explorer
                    MaxJamon
                    this is pretty useful on a big variety of cases

                    thank you it is perfect for my server's spawn
                    Planet Minecraft Logo

                    Website

                    © 2010 - 2021
                    www.planetminecraft.com

                    Welcome