RIP Sounds

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MusicManSK

Active Member
Nov 30, 2017
230
11
18
Hello!
Is there some way to play sound at location for nearby players?
because i looking for it but i every time fail..
Only for speciffic player:
code_language.skript:
play sound "entity.enderdragon.hurt" with volume 10 and pitch 1 at player
Dont work:
code_language.skript:
play raw sound "block.fire.extinguish" at {egg.pos1} with pitch 1 volume 10
code_language.skript:
play "block.fire.extinguish" at {egg.pos1} with pitch 1
This may work but i cant read mind of autor:
Screen_Shot_20171229231019.png

(example is empty)

If you have some good ideas to do it without executing vanilla commands tell me plzz.. make me happy..

EDIT: for better understanding:
if i open chest i hear sound.. and my friend who is hidden in that chest it hears too.. no only me.. but players who are connected to another server cant hear that sound..
 
Last edited:
What's your Skript Version? You sure you are using 2.2 dev28 or above?
 
Server version: CraftBukkit version git-Spigot-596221b-9a1fc1e (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
ViaVersion version: 1.3.0
ViaBackwards version: 2.3.1
Skript version: dev32c
skDragon version: 0.14.0
skQuery: v3.6.0-Lime
skStuff: 1.6.4.1-fork-1.12
skRayFall: v1.9.10
Skellett: 1.9.6b

Plugins (26): WorldEdit, Skript, skDragon, Reqn, SkQuery, BuycraftX, Multiverse-Core, SkStuff, WorldGuard, iDisguise, VoxelSniper, PermissionsEx, ViaVersion, Vault, ViaBackwards, Essentials, ProtocolLib, Citizens, EssentialsProtect, EssentialsChat, EssentialsGeoIP, EssentialsSpawn, FakePlayersOnline, HolographicDisplays, Skellett, skRayFall
[doublepost=1514640056,1514639338][/doublepost]Test code:
code_language.skript:
command /vv:
    permission: egg.use
    trigger:
        drawDot count 10, particle smoke, XYZ 0.3, 0.2, 0.3, center position under {egg.pos1}, visibleRange 8, pulseDelay 5, keepFor 1 seconds
        play sound "block.fire.extinguish" with volume 10 and pitch 1 at {egg.pos1}

play sound "block.fire.extinguish" with volume 10 and pitch 1 at {egg.pos1}
Only for 1 player

play "block.fire.extinguish" at {egg.pos1} with pitch 1
Cant understand condition

play raw sound "block.fire.extinguish" at {egg.pos1} with pitch 1 volume 10
Error:
code_language.skript:
[14:19:37 WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_12_R1.WorldServer.makeSound(double, double, double, java.lang.String, float, float)
[14:19:37 WARN]:        at java.lang.Class.getMethod(Unknown Source)
[14:19:37 WARN]:        at com.w00tmast3r.skquery.elements.effects.EffCustomSound.execute(EffCustomSound.java:38)
[14:19:37 WARN]:        at ch.njol.skript.lang.Effect.run(Effect.java:52)
[14:19:37 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[14:19:37 WARN]:        at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[14:19:37 WARN]:        at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[14:19:37 WARN]:        at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
[14:19:37 WARN]:        at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
[14:19:37 WARN]:        at ch.njol.skript.command.Commands.handleCommand(Commands.java:269)
[14:19:37 WARN]:        at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:164)
[14:19:37 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14:19:37 WARN]:        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[14:19:37 WARN]:        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[14:19:37 WARN]:        at java.lang.reflect.Method.invoke(Unknown Source)
[14:19:37 WARN]:        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
[14:19:37 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[14:19:37 WARN]:        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499)
[14:19:37 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1377)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1220)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[14:19:37 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[14:19:37 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678)
[14:19:37 WARN]:        at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576)
[14:19:37 WARN]:        at java.lang.Thread.run(Unknown Source)
 
What would be nearby players for you? Because you could do the following with Skript's play sound effect:

code_language.skript:
play sound "block.fire.extinguish" with volume 10 and pitch 1 at {egg.pos1} for players in radius 5 of player #this will also include the player
you could also just put a higher volume, the higher it is the more people will hear it.
 
im need to play sound at defined location for players in radius idk how.. like creeper explosion, it can be heard by nearby players.. or any minecraft sound..
ok your code.. but it is like the player who is away from the location will hear it weaker? and what about right and left sound channel?.. it is working? and shouldnt it be like this?:
code_language.skript:
play sound "block.fire.extinguish" with volume 10 and pitch 1 at {egg.pos1} for players in radius 5 of {egg.pos1}
[doublepost=1514805451,1514804246][/doublepost]i tried it and it works.. but volume is same for player who is 1 block from position and player who is 10 blocks from position :emoji_frowning:
 
Status
Not open for further replies.