Minecraft Data Packs / Game Mechanic

Creepers Don't Destroy! (But Still Deal Damage!)

  • check_circle Functions
  • 11,231 views, 3 today
  • 1,712 downloads, 0 today
  • 23
  • 23
  • 12
Zyllain
Level 36 : Artisan Explorer
15
Creepers are a core part of Minecraft, but sometimes we don't want them blowing up the redstone contraption we've put DAYS into, or destroying that house you spent WEEKS designing. However, most data packs that cause Creepers to not damage their surroundings also removes all damage that they deal to players from their explosions. This data pack meets in the middle, saving your work, but still keeping them as a viable threat in game!

In these worlds, disabling mobgriefing works just like this, but completely ruins most farms. It means Villagers won't farm, Sheep won't eat, etc. This data pack allows those things to still run, while keeping you safe from Creepers!

Installing is super simple: just download the data pack, put it in your world's "datapacks" folder, and type /reload in your world! You'll be prompted with a message saying to type /function creeper:install if this is the first time running the data pack on your world. This is required if you want the data pack to function!

For those of you who want the technical details:

The data pack constantly tests to see if a player is within 10 blocks of a Creeper. If they are, then it sets gamerule mobgriefing to false only until they get more than 10 blocks away from all Creepers, either by moving, the Creeper exploding, or the player dying. As soon as that condition is met, gamerule mobgriefing is turned back to true, allowing all other functions to resume.

This does mean that while you are within 10 blocks of a Creeper, any farms that rely on mobgriefing won't function, but that is for a very short time, as a creeper will quickly aggro on the player and detonate within that radius.

The only time this will cause an issue is if you have, for some reason, a Creeper perpetually locked within 10 blocks of an afk station or your home. I don't know of any farms that rely on having a Creeper that close to the player without them blowing up or dying soon, so I can't imagine this being an issue. Please correct me if I'm wrong!
CompatibilityMinecraft 1.13
toMinecraft 1.18
Tags

1 Update Logs

Update #1 : by Zyllain 03/24/2022 5:03:18 pmMarch 24, 2022 @ 9:03 pm UTC

Updated to 1.18.2!

Create an account or sign in to comment.

ArthurTheEagle
02/12/2022 11:23 am
Level 29 : Expert Birb
Hello!

You have done an excellent on this datapack, it is a true lifesaver!
It is a really practical, and functional little datapack!
Great job for this underappreciated gem!
1
selena_queen
09/17/2021 6:01 am
Level 12 : Journeyman Artist
Hello! This is an amazing pack and I would love to use it, Im having a tiny bit of trouble with it though. I typed in reload but its taking a very long time, could it be because my world is already pretty explored? What could it depend on? Cuz I tried creating a completely new world in the same version and tested the datapack there and it reloaded instantly. What do you think could be the issue?
1
selena_queen
09/17/2021 7:29 am
Level 12 : Journeyman Artist
Nevermind, I've checked and I put it in the incorrect world folder ( I have two with basically the same name ), great pack thank you! Just what i needed <3
1
Zyllain
09/19/2021 7:29 pm
Level 36 : Artisan Explorer
Glad you got it sorted! Thanks for the feedback!
2
TheDiamondPlayables
08/20/2021 10:35 am
Level 83 : Elite Programmer
So I see you've made your own version. Good job!
2
Zyllain
08/22/2021 11:06 pm
Level 36 : Artisan Explorer
Thanks! Definitely not a complete solution, I'm still looking forward to your final version! This is just what we use on our server and I figured I'd upload it for a quick fix.
1
TheDiamondPlayables
08/23/2021 12:09 am
Level 83 : Elite Programmer
history
Got quite alot of cases considered on my version.

Some interesting examples:
- Mob civil wars
(if a stray hit a creeper away from player and creeper retaliates)
- Creeper instant fall attacks
- Wither Starting Explosion + Wither Skulls
(appearantly filling up the wither immune tag does not do these 2 things - its why I didn't add it in the first version)

Will be releasing the update soon, might put it out on Patreon Early Access as this massive post with all the other datapack files if you want it early.

(I got Griefless in particular done a few days ago, but I won't be releasing it to the public once I got all my packs released for at least a day, still got quite a few packs left unreleased in Early Access, then I'll update everything to match the new advancement version I've been working on post-Advancement Scripter)

PS: the final result is suuper compact.
Took me a while but I finally optimized it real good.
1
_Blip_
08/19/2021 6:17 am
Level 43 : Master Pixel Puncher
Or just turn mob griefing off
1
Zyllain
08/19/2021 1:32 pm
Level 36 : Artisan Explorer
You could, yes, however that makes a lot of farms not work anymore! With mob griefing off, villagers won't tend to crops, sheep won't eat grass to regrow their wool, piglins won't pick up gold to trade, and a bunch of other things like that don't work. That's why we need a way to achieve this while still having mob griefing on by default.
1
_Blip_
08/21/2021 7:16 am
Level 43 : Master Pixel Puncher
Cool then!
1

Welcome