tutorial:sounds
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
tutorial:sounds [2021/02/06 10:33] โ external edit 127.0.0.1 | tutorial:sounds [2023/01/09 17:51] โ [Step 3: Create your sound event] Updated for 1.19.3+ slainlight | ||
---|---|---|---|
Line 71: | Line 71: | ||
[...] | [...] | ||
public static final Identifier MY_SOUND_ID = new Identifier(" | public static final Identifier MY_SOUND_ID = new Identifier(" | ||
- | public static SoundEvent MY_SOUND_EVENT = new SoundEvent(MY_SOUND_ID); | + | public static SoundEvent MY_SOUND_EVENT = SoundEvent.of(MY_SOUND_ID); |
} | } | ||
</ | </ | ||
+ | If you're using version 1.19.2 or below, please replace '' | ||
==== Step 4: Register your sound event ==== | ==== Step 4: Register your sound event ==== | ||
Register your sound event under the '' | Register your sound event under the '' |
tutorial/sounds.txt ยท Last modified: 2023/01/09 18:20 by slainlight