Help with weird block

Started by PoisonousPotato on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with weird block
Mon, 09/23/2024 - 02:21 (edited)

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
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use the play sound…
Tue, 09/24/2024 - 01:19

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. 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you give images to this…
Tue, 09/24/2024 - 02:07

can you give images to this and the blackhole one?

 

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure on tick…
Tue, 09/24/2024 - 18:45

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.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
tick rate number please
Mon, 09/30/2024 - 02:40

tick rate number please