Started by
Figby2012
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to create a mod that replicates the effect in the video linked below. I have already made a structure which generates properly, and I have the sound and overlay image imported into MCreator. I just need to know how to make the sound and overlay appear when nearing the structure and then go away. The structure is not a standard structure it generates as a feature if that makes any difference.
If you can get the location of the structure, use the formulae:
distance = absolute(square root((structure x - player x)^2)+(structure y - player y)^2)+(structure y - player y)^2))
distance = absolute(square root((structure x - player x)^2)+(structure y - player y)^2)+(structure z - player z)^2)), sorry