-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Request] Goat Horns #50
Comments
I agree this would be a excellent addition to the plugin |
I'll throw my hat in the ring, this would be great. |
Following Hermitcraft series, I saw that the original plugin was able to add custom audio on Goat Horns and Players Head (as well as setting a distance). Sadly, not supported there. Hopefully, someone made a PR for the audio distance (which seems to work great) and I'm trying to make the goat horn implementation now, with some success I think (I let you judge by it :D ). Minecraft.Paper.plugin.-.CustomDiscs.on.Goat.Horns.LowRes.mp4 |
A little update on the progress I made for those who want to know, I made some kind of "beta" version of it. But all in all, it's working so far (Edit : Oh, and the horn sound is on a different voice channel, so you can mute Horn sound and keep the music discs active (and vice-versa))
A little example video showcasing this version, and also including the "range" modifier from this PR : #49 ==> https://www.youtube.com/watch?v=OMhWHM0eagY So, next steps :
|
Interesting, thanks |
Little (sad) update : I found a big flaw in my implementation. That's the same issue as I talk earlier, due to how Craftbukkit/Spigot handle the goat horn NBT data, which doesn't allow to create an horn without a value set in it. I'm reporting this on the Bukkit Discord server to see if we can get this sorted out (and then, will need to get Paper updated, if fixed first). So right now, I'm stopping to work on this as it's not possible to implement it in a good way :'( Edit : I could also look to a way to detect when a goat horn is in the main hand and have a specific NBT tag. Edit 2 : "Bug reporting" (if they consider it as a bug at least) on Spigot bug tracker (as they handle Craftbukkit too, from what I'm aware of). Edit 3 : I confirm, 1.20.5 and 1.20.6 ==>As the NBT tag is replaced by components now, we can get an horn WITHOUT an instrument attached to it (from what I tested so far). Edit 4 : I tested Audio Player in both version 1.20.5 and 1.20.6 : The default goat horn sound is now played :( |
item components exists now and you can use custom_data |
Yeah, I already tried to work on this new "NBT change" with components, but this require quite a lot of work (+ paper which change the way relocation work (Craftbukkit and so on)). I'm not a pro developper, so as I saw that @Navoei is going to support 1.21, I'll wait this update to come out first, then see (if not done at that time) how to add the goat horn support to it 🙂 |
Thanks for the effort, excited for the Goat horns |
Hey there, it's me again 😊 I know, I was quite pessimist in my last statement, but hey, this was in the 1.20.x branch ! Now, let celebrate the 1.21 release with this big hope : 2024-08-07.01-48-18.mp4In the end, the "custom_data" is already the place where we store all the song properties, so that's not the fix here 😋 But I found a way to get rid of the horn sound and this seems to work perfectly fine. For now, I kept my "old way" : Delete the horn in your main hand then recreate a special horn. Ongoing task will be to make this functioning without issue as is in the video + range setting modification (yeah, right now I use the console for this test, to give myself the correct horn, the plugin isn't yet updated x') ). Next step : Player's head custom sound (might be harder, or not, don't know yet). |
For those of you that follow this request, I'm planning on releasing a version that handle the goat horns on my fork (as this one isn't quite as active and after a more than a month to get the PR for the range change to be added, I give up here for now). So, I'll just work on the "timeout" function of the horn tomorrow, then I will push everything on my Github repo. The way it work is not the fanciest way (delete and recreate a new goat horn in the player inventory, it come with a "side effect" that if a slot is free before the one in hand, the new horn will get there, as the system rely on the /give command and we can't specify a slot). There might be some way to achieve it nicer with NBTAPI or similar, but that's a pain to work with as most of those system seems to not allow the rewrite of the base "minecraft:instrument" component, so that's the best way I found so far, without messing around with NBT manipulation (and also : I'm not a full time developer, more of an enthusiast). So, this release will include, if all goes well :
To note : There is already a placeholder in that plugin for the custom player heads ==> that's not implemented yet but is expected to be my next goal. |
Just to let you know, I did publish a release here : https://github.com/Athar42/CustomDiscs/releases/tag/3.2a Feel free to test it and report any issues you found (follow the guidelines in the release page thanks :D ). |
Similar to the original AudioPlayer mod, please add custom goat horn sounds aswell, using the same method done with the music discs. This would be awesome.
The text was updated successfully, but these errors were encountered: