1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My play sound effect don't work and don't show log errors

Discussion in 'Skript' started by Aidanete, Jul 7, 2018.

Thread Status:
Not open for further replies.
  1. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    I put an effect to play a sound but it doesn't work, there are no log errors for this.
    Code (Skript):
    1. play sound "entity_generic_eat" with volume 1 and pitch 1 at event-location for event-player
    Please, help
     
  2. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
  3. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Do you have Skellett installed?
     
  4. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    Not, I installed both and still don't working. I will edit this reply when I test with the line of code Efnilite said.

    EDIT: Thank you very much, works fine with the code Efnilite gave me and with the plugin it said.

    Thank you, both.
     
    • Friendly Friendly x 1
  5. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    Just to be clear, you do NOT need skRayFall for this. Your problem was that you were using underscores instead of periods. You could remove SkRayFall and change the sound name in your original code to "entity.generic.eat" and it should work fine.

    People need to stop recommending add-ons for things vanilla Skript supports :emoji_slight_smile:
     
  6. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Oh lol, didn't even realize that. GG
     
  7. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    Ah, didn't know that :emoji_grimacing: sorry
    Well, you learn something new every day lol
     
    • Funny Funny x 1
  8. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    10
    You are right, but right now I'm using SkRayfall for some stuff with citizens plugin xD
     
  9. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    No worries -- vanilla Skript has a lot more features than I think people expect nowadays.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Just to double check, are you using Spigot 1.8 or 1.12?
    Because the sound files are different

    To test your code, I put this in a Skript
    Code (Skript):
    1.  
    2. on break:
    3.     play sound "entity_generic_eat" with volume 1 and pitch 1 at event-location for event-player
    Exactly how you wrote it, i just added an event to test. And it works perfect fine

    But if you are using a 1.8 server, the sound files are different, and if I'm not mistaken, instead of entity_generic_eat it would just be eat
     
  11. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Except it's "entity.generic.eat", dots instead of underscores.
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    I've always used underscores and it works for me
     
  13. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    That's odd, I've always used dots (because they're used in the actual sound id's, if you use the /playsound command you'll need to write them with dots) and it works.
    Maybe it's an alias of some sort then.
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    i have no idea. I just use what is listed on Bukkits Docs
    And they use underscores there
     
Thread Status:
Not open for further replies.

Share This Page

Loading...