#Changing block hardness with a datapack

1 messages · Page 1 of 1 (latest)

magic sage
#

I've done a little digging and as a few years ago this didn't seem possible in a datapack. Have things changed? Is there a way to change the "hardness" value of a block using datapacks nowadays?

narrow smeltBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1737239356:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

gloomy sage
#

There is not

sacred hull
#

Welllllllllll.... technically, there ARE some things you can do, but most are quite finicky

#

For one, mining speed is now an attribute, so you can apply an attribute modifier to make a certain block seem harder to break

#

You can also change which blocks certain tools are effective on

gloomy sage
#

That's not what they asked though

sacred hull
gloomy sage
#

Well Hardness is a technical term that impacts explosion resistance as well as mining speed, but it's a property of blocks. It's possible they will be interested in alternative options to mimic a different hardness, by affecting the mining speed of tools or players, but without more information, their question is otherwise extreme clear: they want to know if hardness of blocks is data driven yet, and it's not

sacred hull
#

Ah

#

Well, I suppose it's something to maybe look forward to in the future ^^

gloomy sage
#

We can presume data driven blocks are coming eventually, yes. Mojang have said they need fully data driven items first, which requires implementing components to cover all current items behavior, so we're on the roadmap for it 🙂

narrow smeltBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

magic sage
#

Awesome to hear that we will eventually get a component bsaed system for blocks as well, the new changes for items has been really cool to make new stuff with

#

And just to clear things up, the purpose behind me asking this question is making a datapack to instamine deepslate without janky workarounds. I managed to find a solution for now, but yeah, its jank

narrow smeltBOT