Started by
PoisonousPotato
on
Topic category: Help with Minecraft modding (Java Edition)
wanna make a weird block that will loop a sound. depending of how your close to it it will be louder and faster or muted and really slow
1 block needs to be 0,25 speed and volume
35 blocks away can't hear because its so low the volume.
help. is a block. mcreator 2024.2. java edition. procedures
EDIT: it also needs to stop the sound when its broken obviously
Edited by PoisonousPotato on Mon, 09/23/2024 - 02:21
Just use the play sound procedure. Change the level and pitch until your satisfied with the volumes levels at different distances. I dont know if level changes how loud it is or not but just use trial and error. If you make it on tick update then it will play forever. If the sound you want is quite long then you can add a cooldown in your tick procedure. Where the cooldown will be as long as the sound.
can you give images to this and the blackhole one?
Make a procedure on tick update. Put the play sound procedure block in and pick the sound. Done.
Change the (60) to however long the sound file is in ticks (20 ticks = 1 second). Also idk if the local variable will work, if it doesnt change it to a block nbt number tag and make the block a block entity in it's settings. And edit the level and pitch etc.
tick rate number please