Started by
pedro1903
on
Topic category: Help with Minecraft modding (Java Edition)
i want to make a custom sound loop,it has 2.8 seconds (112 ticks) i tried doing a timer,searching on the forum and i found nothing
can someone please give me an anwser
You set up a variable for time. (The left side tab under Resources) Name it and choose NUMBER and GLOBAL_MAP.
Then make this code inside the Update Tick (or Entity Tick Update)
https://ibb.co/KW8z6XR
You have to know the length of the sound in ticks (20 ticks per 1 second)
Also, to stop the sound doubling/echoing for other sounds you can add this:
https://ibb.co/6J7rtv1
where is it? I can't find GlOBAL_BAP
Oh,I find it