• check_circle Functions
  • check_circle Loot Tables
  • check_circle Recipes
  • 18,089 views, 57 today
  • 2,009 downloads, 5 today
  • 42
  • 39
  • 54
Ant_Redstone avatar Ant_Redstone
Level 51 : Grandmaster Cake
52
Chest Protection

Hello everyone, in this datapack I present to you simple and clean way to protect your chest against unauthorized access or grief with the cutest system you'll find :3


Info:

How does it work?

Your protected chest will become a cute little chest while you'r not nearby, with that there will be no way to access it, this little chest will deny any attempt of grief, surviving anything, lava, explosion, pistons, hoppers, minecarts or whatever other way you think to destroy it in survival or creative.

How do I protect my chest?

For each block of protection you'll need 1 Item Frame, and 1 renamed Tripwire Hook aka "Key"
All you have to do is place your Tripwire Hook inside an item frame attached to your chest
Example



Is it really safe?

Yes, it's blast and fire resistent, also I'v tried to break it using pistons every tick, and nothing happened

How do I un-protect my chest?

As Security method, the item frame can't be broken, but it will get back to normal if the chest gets broken while unlocked, so the only vulnerability of the chests are while you'r near them.

How do I let my friends to open my chests while I'm away?

That's simple, this datapack uses UID system to locate players, the UID can be found by the side of player's name in TAB List, it doesn't require to the player be online to trust or untrust them.
All you have to do is type the command /trigger trust.chests <set/add> <UID>

I trusted the wrong person, what do I do now?

To untrust a player, it's the same thing as trust it, but you type the neagative value of the UID

Example: to untrust UID 10 you type /trigger trust.chests set -10


FAQ:

Why do I say it is cute?
Because I use player heads of the curresponding block when the container is locked so we have mini blocks of it
I mean... look at this..

UwU

I don't want the item showing up, can I hide it?

No, you can't hide the item frame's item, but what you can do is put the frame in hidden faces of the block, like under it

I want to protect my shulker box, can I do that?

Yes, this datapack works the same way with every accepted blocks, that includes: Chest, Trapped Chest, Ender Chest, Barrel, Shulker Boxes, Dispenser and Dropper

I Found a bug, should I report it?

Yes, please feel free to report any bugs in my DM or in this post's comments.

How can I uninstall it?

To uninstall it you gave two options, soft and hard uninstall, soft one is recommended if you don't want to remove saved data, or if you use any of my datapacks. Hard one you'll completely uninstall my datapack systems. To do so, you must run the command "/function cprot:uninstall.<soft/hard>" than run "/datapack disable <my datapack name>"


Both Uninstall methods will unlock loaded containers, and only the loaded ones

Some griefers got banned from my server and I want their Items back, what do I do?

I'v added a function to unprootect containers nearby, to do so, just get 3 blocks near the container and run the "/function cprot:ungrief"

There are some features I miss, will you add them?

I'll evaluate every feature request sent to me, so feel free to request some things to improve my datapack

I really liked your job, how can I support you?

If you want to donate me any minimal amount, I'll really appreciate if so ^^

Here is My Paypal
CompatibilityMinecraft 1.16
Tags

6 Update Logs

Update v1.1.5 : 06/25/2020 6:01:57 pmJun 25th, 2020

Added ungrief function, it will unprotect chests in a 3 bloks radius of who runned it.

"/function cprot:ungrief"
LOAD MORE LOGS

Create an account or sign in to comment.

1
03/05/2021 10:50 pm
Level 1 : New Miner
User3474078G
User3474078G avatar
Hi i wanted to new if you oculd tell me if theres a way the chest dont go small? i want to use them together with a shop system but when the chests go small the signs drop off :( can u tell me what i need to do so the chests stay the way they are
1
04/19/2021 5:22 am
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
sorry for the l8t, but no, there isn't a way to keep the chets like chests, the shop system shoulded have a protection system on it by itself, also, it would probably break the shop, since it becomes player heads, and aren't chests anymore, that's actually the way it gets protected, so the shop wouldn't have access to it's content
1
02/23/2021 2:51 pm
Level 1 : New Miner
D-RICK97
D-RICK97 avatar
Funciona muy bien en mi server 1.16.5, hay alguna forma de limitar el numero de cofres protegidos que puede tener cada jugador??
2
02/24/2021 3:52 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
no, is meant to be used to ppl keep all their items safe
1
02/22/2021 12:07 am
Level 1 : New Miner
D-RICK97
D-RICK97 avatar
ESTO ES INCREIBLE, FUNCIONA EN LA 1.16.5 ???
2
02/22/2021 6:42 am
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
Yes, it works in 1.16.5, if u get any problems, pls tell me
3
02/09/2021 10:52 am
Level 4 : Apprentice Crafter
DynamitePig
DynamitePig avatar
how did you get the adorable heads???????????

also noice job
my sister tried to get my copper in the latest snapshot and she only got a cute head B)
1
11/15/2020 11:20 pmhistory
Level 1 : New Miner
User3279552F
User3279552F avatar
I need this updated, or a working one. People keep stealing my stuff! and ive no idea who it is xD

It doesnt work at all.
2
01/25/2021 12:17 pmhistory
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
Hm.. it actually works here, what's the minecraft version you are testing it?
1
01/25/2021 12:49 pm
Level 27 : Expert Miner
notnew12345
notnew12345 avatar
Will there a way to set trusted players id to your chests like /trigger trust_id set <player id> when your near your chest?
1
09/24/2020 2:40 pm
Level 1 : New Miner
odolito
odolito avatar
How do you get the key?
1
02/09/2021 10:50 am
Level 4 : Apprentice Crafter
DynamitePig
DynamitePig avatar
rename a tripwire hook using an anvil to "Key". you use that to lock your chests
1
07/16/2020 12:33 pmhistory
Level 1 : New Crafter
sweetenpotato
sweetenpotato avatar
Woah, What a nice datapack!
Btw, is there any permissions to use this datapack in my public server?
2
07/17/2020 12:04 am
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
ty, no, and no, you can add it to your server, and everyone will be able to use it
1
07/04/2020 5:05 am
Level 1 : New Miner
M37T
M37T avatar
data modify block ~ ~ ~ Items set from entity @s Item.tag.backup
data modify block ~ ~ ~ CustomName set from entity @s Item.tag.CustomName
is ran twice (in cprot:protect/unlock/unlock.mcfunction, and cprot:protect/unlock/container/(block).mcfunction)


to me it looks like when a player changes their name, function pns:new/player is called (because they don't have a score yet), so the player's data would be lost
so you need to identify players by their uuid, and not with the scoreboard, because that stays the same when a player changes their name
1
07/05/2020 5:58 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
I did the UID scoreboard to be the search method bcs it wasnt possiible to use the real uuid

now it's possible, but I didn't update it to be this way since it would be 4 times slower to search
1
06/27/2020 8:04 pmhistory
Level 1 : New Miner
brunoXD154
brunoXD154 avatar
work with mods 😅 because install the expanded storage mod (Fabric) and try it and I think it doesn't work
1
06/03/2020 2:11 am
Level 29 : Expert Dragon
_Jack_93_
_Jack_93_ avatar
Can you apdat your chest shop datapack to this datapack?
2
06/03/2020 9:00 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
No, it's not meant to be like that.

I won't work in this chest shop datapack anymore, I have a trade based shop that's pending to release, only need some things as treatment, but it will not work with this lockable chest since it have it's own way to lock
2
05/24/2020 11:19 am
Level 6 : Apprentice Miner
Baby_HD
Baby_HD avatar
Amazing Datapack!
1
05/24/2020 4:09 am
Level 1 : New Miner
DragonBornMage
DragonBornMage avatar
how do you uninstall? It keeps the data in the TAB menu for the trust numbers after disabling. Just delete the trust.chests scoreboard?
2
05/24/2020 8:44 amhistory
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
sorry, looks like I forgot an uninstall function to make your life easier, thank you for telling me that.

To uninstall u must disable the datapack using the `/datapack disable (name of it)` command, plus u'd need to remove some data from `/data remove storage (some names here)`

and also remove the scoreboards using `/scoreboard objectives remove ...`, I'll make this function and add it, so ppl can uninstall it with only 2 commands, if u want, dm me so I send u all the commands that I'll include in this function, so u only have to do some copy and pastes
1
06/01/2020 4:00 am
Level 1 : New Miner
DragonBornMage
DragonBornMage avatar
thanks I figured it out by looking in the files and seeing what was enabled initially. But yeah, definitely needs an easy way to uninstall cleanly for those who wouldn't be able to figure that out. Very cool datapack overall!
1
05/07/2020 9:28 am
Level 1 : New Miner
Serniksernik
Serniksernik avatar
hello, do it work on 20w19a offline mode?

whole chest creation process seems to be working, but after frame changes to lock - it still is openable by anyone and breakable by anyone.
2
05/08/2020 2:34 am
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
It should be working, but I didn't test, it should be breakable and openable by anyone only if the owner is close to it
2
05/08/2020 5:34 am
Level 1 : New Miner
Serniksernik
Serniksernik avatar
och, so i think i missunderstood whole idea lol.

I thought its kind of securing chest by setting proper tripwire combinations or something :P
1
05/05/2020 7:36 am
Level 23 : Expert Miner
Italorecife
Italorecife avatar
Você é br ?
1
05/05/2020 1:48 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
Sim
2
04/27/2020 11:52 am
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Just noticed that containers in safe mode can be blown up and punched by fist in creative mode
1
04/27/2020 6:28 pmhistory
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
Yes, Creative mode can apply damage to Invulnerable entities.

it can only be blown up if u ignite the tnt in Creative mode MC-78689
1
04/27/2020 11:45 pm
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Aw. Ok. Thanks for the answer
1
04/12/2020 1:04 am
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Testing on 20w15a. Chests are still Steve's heads
1
04/12/2020 7:03 amhistory
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
oof sorry looks like I'v uploaded the wrong file now should be the right one, tyvm for telling me that
2
04/12/2020 1:18 pm
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Barrel in one of rotations is Steve's head (put it on the ground, item frame on a top). All other items are ok
1
04/13/2020 3:53 am
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
Fixed, Up and Down rotations of the Barrel
1
04/04/2020 8:18 am
Level 41 : Master uwu
KapceRBLX
KapceRBLX avatar
Hi, all my chests [​small] are now steve heads on online mode server
3
04/04/2020 3:44 pm
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Snapshot changed UUIDs system. Wait for update
1
03/22/2020 4:30 pm
Level 8 : Apprentice Architect
Scarer333
Scarer333 avatar
hello i put my stuff on my chest and locket it and theres a chest head and i can't open it, also i found the item frame and the hook on the floor
2
03/22/2020 9:38 pmhistory
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
This datapack is for 1.16+
1
03/22/2020 1:03 pmhistory
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
In 20w12a snapshot little chests looks like Steve's heads
----
This is why



UUIDs


UUIDs stored in NBT are now represented as an array of four integers.
Example: {UUID:[I;1498693494,1027158888,1898994005,860320107]}

Renamed a couple of fields:
OwnerUUID of tamed animals, area effect clouds, evoker fangs and projectiles is now simply Owner.
TrustedUUIDs of foxes is now Trusted.
target_uuid of conduits is now Target.
1
03/23/2020 6:04 pmhistory
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
oh I was afraid of my UUID system getting broken bcs of it.. I'll be able to start updating it in the next couple of days, ty for the info
2
03/15/2020 12:26 pmhistory
Level 18 : Journeyman Explorer
Aeon2927
Aeon2927 avatar
Suppose one player spammed locked chests and quit server forever. How can admin get rid of those chests?
---
I have found a way. Look on lock and type /kill
Press tab to select a long random name then kill it. After that you can to break little chest
1
03/14/2020 2:20 pm
Level 1 : New Miner
rsQuestie
rsQuestie avatar
Hey! I've been trying the chest protection out but I can't seem to get it to work. Whenever I get far away enough from the chest for it to turn into the player head, the item frame pops off which breaks it. Unless I'm being stupid and missing something. Thanks in advance for the help, and the datapack itself ofcourse!
1
03/14/2020 3:20 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
this datapack is to 1.16 versions +
2
03/14/2020 4:08 pm
Level 1 : New Miner
rsQuestie
rsQuestie avatar
Ah, that's it then. My bad!
1
03/13/2020 8:22 pm
Level 3 : Apprentice Network
FallenFox
FallenFox avatar
Getting an error trying to add someone "Unkown scoreboard objective 'trust.chests' "
Any way to fix this?
1
03/14/2020 12:44 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
omg sorry, this is an trigger scoreboard, I'm releasing an patch to add it, u can eighter add it manually or update the datapack
1
03/13/2020 12:55 pm
Level 41 : Master uwu
KapceRBLX
KapceRBLX avatar
Can you make something to just but the lock in the chest not on item frame or just drop it on chest?
1
03/13/2020 1:04 pm
Level 51 : Grandmaster Cake
Ant_Redstone
Ant_Redstone avatar
no, I get your point, that's the fact that an item frame has hitbox (until Mojang let us remove it), if you want you still can place the item frame in any face of the container, including the bottom one, so if you don't want it to show up, I'd recommend to use this one
2
03/10/2020 1:57 pm
Level 41 : Master uwu
KapceRBLX
KapceRBLX avatar
How do i disable those mini chests?
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome