#How do I make a feature that ONLY replaces blocks that are exposed to air?

5 messages · Page 1 of 1 (latest)

glossy flicker
#

I have made a custom ore that I intend to be very rare. At this time, it has a 40% chance to search a chunk from top to bottom and replace the first encountered deepslate diamond ore with itself (this amounts to a roughly 4% chance for a diamond to be replaced). While I want the ore itself to be only very rarely encountered, I would like it to be relatively easy to stumble across in that rare event that it does manage to spawn. Too many diamonds are buried, and so the ore has a very high chance to also be buried. Therefore, I would like roughly 1-5% of all diamonds that are likely to be encountered by a player to be replaced with the ore, and that entails exposure by either the diamond ore OR a part of a diamond vein to air (the custom ore can be buried as long as it is part of a diamond vein that is exposed to air, if this is possible). What is the best way to accomplish this?

#

i should mention that i am relatively new to bedrock addon development, so forgive me if this question seems trivial. it has not been easy to pore over the documentation to find the info i need, especially when it comes to features

cursive idol
#

You have to make sure the single block feature is attachment to air.

glossy flicker
cursive idol
#

Ah, yes. I see.