• check_circle Advancements
  • check_circle Functions
  • 7,728 views, 12 today
  • 1,089 downloads, 3 today
  • 58
  • 44
  • 15
michaelo's Avatar michaelo
Level 32 : Artisan Chef
24
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
Tags

4 Update Logs

Update #4 : by michaelo 11/18/2023 9:34:16 pmNov 18th, 2023

- Added fix for bug MC-260225 which causes incorrect item counts when uncovering a large stack of items from a suspicious block
- Added uninstall function: /function customsus:uninstall
- Version 1.20.2 and later now required
LOAD MORE LOGS

Create an account or sign in to comment.

1
10/22/2023 4:59 am
Level 17 : Journeyman Goblin
SubParFauxPas
SubParFauxPas's Avatar
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.
2
10/22/2023 8:31 am
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
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 :)
1
10/23/2023 2:12 amhistory
Level 17 : Journeyman Goblin
SubParFauxPas
SubParFauxPas's Avatar
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
11/18/2023 9:56 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
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
06/11/2023 10:44 am
Level 6 : Apprentice Crab
WiseSunshine
WiseSunshine's Avatar
Thank you, works great. Is it ok if I credit you on the new skyblock map I'm making, I read there were commands to combine sus sand and items, but I was never able to make it work. This datapack was exactly what I needed
1
06/11/2023 11:07 amhistory
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
Yeah sure, that would be great. Glad it was helpful!
2
06/28/2023 5:15 pm
Level 6 : Apprentice Crab
WiseSunshine
WiseSunshine's Avatar
Hi, thank you once more for your datapack. I just posted my map, your datapack was a great source to make some custom loot for an archeology based skyblock island I had planned :)
1
06/11/2023 5:01 pm
Level 6 : Apprentice Crab
WiseSunshine
WiseSunshine's Avatar
Great, I will give you a heads up when the map is done, I am still only halfway
1
06/09/2023 7:11 am
Level 1 : New Miner
AzaaZone
AzaaZone's Avatar
The download link doesn´t work
1
06/09/2023 12:23 pm
Level 32 : Artisan Chef
michaelo
michaelo's Avatar
Hmm that's weird, it does for me. Try this: https://modrinth.com/datapack/customarcheology/version/1.1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome