Minecraft Data Packs / Game Mechanic

Tranquility [no neutral / hostiles]

  • check_circle Functions
  • 1,157 views, 15 today
  • 123 downloads, 1 today
  • 13
  • 9
  • 13
deeveesss avatar deeveesss
Level 25 : Expert Birb
8
Tired of fighting? Go tranquil!
This tiny datapack adds triggers and functions that allow the player(s) to toggle the hostility of all in-game neutral and hostile mobs. Now you can experience true tranquility when on any difficulty!
Check the releases page on GitHub for pre-1.19 versions.


To enable tranquil mode use
/trigger tranquil
To disable tranquil mode use
/trigger survival
Mobs named in the mobs.json file will ignore each other and player(s) in tranquil mode.
Player(s) will also not experience hunger, similar to peaceful difficulty.
This datapack only affects targetting mechanics. Player(s) still receive indirect damage from mobs.
† some mobs' hatred for others (looking at you, Iron Golem & Piglin Brute) is stronger than this datapack.
† an alternative download that does not affect hunger can be found on the releases page on GitHub.


Installation is easy!
Just drag and drop the datapack zip file into your world's datapacks folder.
An uninstall function is also supplied
/function tranquil:uninstallThis datapack is incompatible with any other packs that utilize the teams command or the scoreboard trigger objectives names above.

Simple to modify!
Add or remove mobs from the mobs.json file to change whats affected by tranquil mode.
† if you're not comfortable editing JSON files, you can use misode's entity types tag generator.

Optimized for servers!
This datapack was designed to minimally affect overall game/server performance.
For hosts using PaperMC, make sure to enable in the paper-world-defaults.yml file
allow-non-player-entities-on-scoreboards: true
All clients observe the same behavior on servers using GeyserMC.

Licensed under Creative Commons ShareAlike CC-BY-SA
Creditreddit.com/u/chromosome6
CompatibilityMinecraft 1.16
toMinecraft 1.19
Tags

4 Update Logs

Backwards compatibility to 1.16 : by deeveesss 07/09/2022 10:16:30 pmJul 9th

LOAD MORE LOGS

Create an account or sign in to comment.

2
07/09/2022 8:12 pm
Level 1 : New Miner
Forgot_N
Forgot_N avatar
This is an awesome datapack! I need something just like this for 1.16, is it possible that this pack will work for that version? Ik some datapacks can work i you change the pack format would that work for this one?
1
07/09/2022 10:14 pmhistory
Level 25 : Expert Birb
deeveesss
deeveesss avatar
Check under the GitHub releases, I've adapted it for the last few versions going back to 1.16 at your request. 😇
3
07/06/2022 10:59 am
Level 1 : New Miner
artemko13gaming13
artemko13gaming13 avatar
i love this data pack alot, so if theres a update, will you add something :)
1
07/06/2022 1:25 pm
Level 25 : Expert Birb
deeveesss
deeveesss avatar
If you mean adding new mobs for new updates, I absolutely will!
2
07/06/2022 5:45 am
Level 1 : New Miner
B1ackTea233
B1ackTea233 avatar
Hello, I like this data pack very much, I want to move it to the largest mcbbs in China, because there are many Chinese players who are not familiar with pmc or curseforge. I want more people to see such excellent works, of course I will not profit from it. I will mark the original address and have them go to pmc to download it
1
07/06/2022 1:22 pm
Level 25 : Expert Birb
deeveesss
deeveesss avatar
I appreciate that! You're more than welcome to share this wherever you please. 😇
1
07/05/2022 1:21 am
Level 1 : New Miner
ZeroIceBear
ZeroIceBear avatar
I need this! However, for some reason, zombies and their kin, as well as Evoker and his kin (including vex), remain hostile to players.
1
07/05/2022 1:23 am
Level 1 : New Miner
ZeroIceBear
ZeroIceBear avatar
Could it be the reason why I used the terralith package?
1
07/05/2022 2:08 amhistory
Level 25 : Expert Birb
deeveesss
deeveesss avatar
I did some digging in the most recent terralith datapack and didn't find anything that directly affects those entities, so I'm not sure why they're unaffected for you. I just fired up a new world with just this datapack and summoned those entities a few blocks away and they all seem to behave as expected along with the rest. (Note that since the commands are applied once per second instead of once per tick that if you summon an entity on top of a player it may have a chance to target and attack the player before the entity has been joined to the team)

Are you by chance using Paper for a multiplayer server? There's a config option in paper-world-defaults.yml that by default is set to false and doesn't allow non-player entities on scoreboards. Change it to reflect the following and things should work.
allow-non-player-entities-on-scoreboards: true

Assuming that doesn't work, try making a test world with just this datapack and progressively add the others you're using to see when the issue occurs again and I may be able to narrow it down.
2
07/05/2022 1:58 pm
Level 1 : New Miner
ZeroIceBear
ZeroIceBear avatar
thank you for your help.
Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome