• check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 9,434 views, 3 today
  • 1,259 downloads, 0 today
  • 64
  • 53
  • 21
michaelo
Level 34 : Artisan Taco Chef
29
This data pack offers an intuitive way for players to bury their own items and create their own suspicious sand/gravel by simply placing sand or gravel on top of items thrown on to the ground.


HOW TO USE:

1.) Throw an item (can be multiple of the same item) onto the ground.
2.) Place a sand or gravel block onto the same block that it falls on.
3.) Uncover what you buried by brushing the block as normal.

NOTES:


> If you break the suspicious sand/gravel you will lose the item you put in it, just as you would normally.

> If you drop multiple of the same item but not at the same time, you will need to wait for them to combine into one item stack for them all to be buried.
> Only items that a player has dropped will be buried. Items dropped from any other sources will not be affected.


THANKS!


Hopefully you can use this to create some fun games with your friends, or maybe just enjoy adding some additional lore to your builds! Any feedback or issues, please comment :)

CompatibilityMinecraft 1.20
toMinecraft 1.21
Tags

5 Update Logs

Update #5 : by michaelo 09/18/2024 12:34:54 pmSep 18th

- Update to 1.21
- General code clean-up
- Package as mod
LOAD MORE LOGS

Create an account or sign in to comment.

WiseSunshine
08/24/2024 4:56 pm
She/Her • Level 7 : Apprentice Birb
Curious, any chance this datapack may be updated to 1.21?
2
michaelo
09/18/2024 12:35 pm
Level 34 : Artisan Taco Chef
Hello! Sorry for delay, it took quite a bit more head-scratching than I was anticipating, but it's all up to date now :)
2
WiseSunshine
09/19/2024 7:21 am
She/Her • Level 7 : Apprentice Birb
You are the best, working on a new map, about 8 times the size of my previous one... will probably take over a year to complete, but I got a bit crazy. This datapack is a huge help for it.
1
michaelo
09/19/2024 7:41 am
Level 34 : Artisan Taco Chef
Oh wait I remember, you're the one who made that skyblock map! Glad to hear I'm of help again haha, looking forward to seeing what your new one will look like.
1
WiseSunshine
09/19/2024 8:36 am
She/Her • Level 7 : Apprentice Birb
I will work to have it done, though it will take quite some time. I am 6/32 finished with it, so it is an insane map.
2
michaelo
08/29/2024 7:11 am
Level 34 : Artisan Taco Chef
Hello, yep it will be soon! I've just been away for a bit, sorry for the wait.
2
SubParFauxPas
10/22/2023 4:59 am
Level 17 : Journeyman Goblin
Hi, running the most recent version of the pack on a vanilla installation of 1.20.2. Works great when dealing with one or more items with a count of 1, but when trying to use on it stacked items, it almost always buries less than what was thrown, and the missed items vanish.

I've dug around your functions and cant quite understand why this is happening myself as I thought maybe you were manually counting the items and something was causing the result to be inaccurate, but it looks like it should just be applying the item's count to the item in the suspicious block when it's content's are set - only it doesn't.
1
michaelo
10/22/2023 8:31 am
Level 34 : Artisan Taco Chef
Hello, thanks for pointing this out! I did some testing using older versions of my pack and previous 1.20 versions, and this seems to have always occurred. It looks like this only happen on larger stacks of items though, which is probably how I missed this as I guess I tested with item stacks of 10 or 20.

I'm just as stumped as you are, I have no idea what is going wrong here. As you said, the data simply just copies across, and I checked this happens correctly: running /data get block on the suspicious block after the item is buried shows the correct item count. So I can only guess that the item count becomes incorrect after you brush the block and the entity spawns, which is strange as nothing in the pack changes that. I'll have an ask around to see if there's anything I missed in my code, but I honestly think it might be a bug. If it is then I have a way to botch around it :)
2
SubParFauxPas
10/23/2023 2:12 am
Level 17 : Journeyman Goblin
history
Yeah, manually setting the item count of suspicious blocks to 64 with a regular command and confirming with /data get, then brushing them free results in lost items too, so definitely a bug.

I've modified and made a hotfix of the pack for my own server that just sets the suspicious block's item count to 1, saves the item entity's count to a scoreboard so I can subtract 1 from it then set the new score to the item's count - just cos I wasn't sure I liked the stacking anyway, but it works.
Curious to see the fix you come up with for maintaining the stacking feature!
1
michaelo
11/18/2023 9:56 pm
Level 34 : Artisan Taco Chef
Hey, sorry updating took a while, got caught up with university haha. It was actually a bit more of a pain than I first thought, the complicating factor was that if you stand directly on top of what you're brushing, the item goes straight into your inventory and can't be detected as an entity in the world. Luckily Mojang just added some new command features recently which helped. I ended up storing the correct count in a custom tag on the item when it is buried.

Here's the bug if you're interested: MC-260225. Thanks again for point this out :)
1

Welcome