- check_circle Advancements
- check_circle Functions
Published May 2nd, 2020, 5/2/20 5:28 pm
- 3,406 views, 1 today
- 75 downloads, 0 today
14
Safe Tools
A simple datapack that warns you when you're about to break your tools
When the selected tool is about to break, every second:
- A warning message will be sent
- Mining fatigue will be given
- A warning advancement will be granted
- A sound will be played
All these events can be configured by the administrator via in-game commands or by changing the parameters in the `config` function.
How to disable the warnings while in game:
- To disable the message use this command:
scoreboard players set $gn.send_message gn.config 0
- To disable the effect use this command:
scoreboard players set $gn.give_effect gn.config 0
- To disable the advancement use this command:
scoreboard players set $gn.grant_advancement gn.config 0
- To disable the playsound use this command:
scoreboard players set $gn.playsound gn.config 0
How to enable the warnings while in game:
- To enable the message use this command:
scoreboard players set $gn.send_message gn.config 1
- To enable the effect use this command:
scoreboard players set $gn.give_effect gn.config 1
- To enable the advancement use this command:
scoreboard players set $gn.grant_advancement gn.config 1
- To enable the playsound use this command:
scoreboard players set $gn.playsound gn.config 1
How to disable the warnings modifying the config function:
1. Open the function inside your text editor
2. Change the values as explained above
3. Save the changes
4. Done!
If you want to take a look at my datapacks, check out both my PlanetMinecraft and Github pages:
- PlanetMinecraft page: www.planetminecraft.com/member/gnottero/
- Github page: github.com/Gnottero
Compatibility | Minecraft 1.15 |
to | Minecraft 1.16 |
Tags |
tools/tracking
4569638
119
safe-tools
Create an account or sign in to comment.