#great-lounge Saturday 18 July 2026
23 messages4 people
- KHi, hello, question, is it possible to create a datapack that changes the drop of a mined block? Or is it easier to just create a mod for that?01:01I was thinking of creating a datapack that would make people feel like there was less clutter in the game One part would be by changing block drops to a more general thing or to only allow certain things to be obtained if the person is crouching
- B
- K
Replying toBeethat is very easy to do with a datapack. though i am not sure about the crouching part…
Nice01:05Earlier today I was looking at a website to make datapacks, but I didn't find anything that resembled something related to that(edited) - Bwhat you are looking for is "loot tables". here is a simple one for Pumpkin as an example. you could put this in the right location in the datapack and change minecraft:pumpkin to minecraft:oak_planks. now any time a pumpkin is mined, it drops oak planks https://misode.github.io/loot-table/?version=1.21&preset=blocks/pumpkin
- K
- K
Replying toBeewhat you are looking for is "loot tables". here is a simple one for Pumpkin as an…
Ohhh, perfect01:11Imma suffer decluttering inventory space- It seems no one has tried to declutter inventory by changing block drops01:12Like, it already happens with grass and dirt01:12So, I'm just a bit surprised01:13I think that for 26.1, the possibility to identify if the person is crouching or not is already implemented for datapacks, so that might help01:14Later I might try to learn a bit more coding to implement blocks to the game. Cus I want oceans with algae floors - J16:26Basically the process goes like this16:261) create a scoreboard objective that follows the Minecraft statistic of sneak time16:282) check if the sneaking objective is more than 0 (you may need to make a seperate objective that is set to 0 for this, just remember that you don't have to put a, real player in the "player" value of the command16:283)tag them with a tag like "isSneaking"16:294) reset the value of the scoreboard objective16:30then you can use that tag to trigger the things you want
- B
- K