-
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
StavWasPlayZ edited this page Jun 10, 2023
·
16 revisions
Genshin Instruments is a Forge mod that brings in Genshin Impact's set of instruments into your Minecraft worlds!
For full documentation of gameplay, visit the curseforge page. Although, if you're here, it means you're somewhat of a geek as myself, so let's get technical, shall we?
Find out everything about the mod's API in the sidebar to your right!
This is my first ever mod and API (and its README) I ever publicly do. So, just expect some quirky stuff here and there..-
I'll try my best to stay on-point, though.
The instrument is built on 2 parts:
-
the client is responsible for having an instrument screen. When the player plays a sound, it will produce a sound for themselves locally, while sending an
InstrumentPacket
s to the server - passing in theirNoteSound
object. -
The server is responsible for handling said
InstrumentPackets
s. It will play all the stuff as described by theNoteSound
object to each individual client within a range of 16 blocks by sending them aPlayNotePacket
.
It is done like so because each client can request to play a different type instance of a note's sound, as described in the instrument's "Instrument Audio Channel Type" setting.
I just thought it's worth noting, so here it is.