#I need Help Playing a sound when I shoot a snowball.
1 messages ยท Page 1 of 1 (latest)
execute console command "run at %player% run playsound minecraft:entity.warden.sonic_charge ambient @a[distance=..10] ~ ~ ~ 1 1"
wait 1 second
execute console command "run at %player% run playsound minecraft:entity.warden.sonic_boom ambient @a[distance=..10] ~ ~ ~ 1 1"
make the player shoot an snowball
wait 5 tick
definitely dont use console commands
skript has a built in sound function
you should pretty much never use console commands
Plays a sound at given location for everyone or just for given players, or plays a sound to specified players. Both Minecraft sound names and Spigot sound names are supported. Playing resource pack sounds are supported too. The sound category is 'master' by default.
Please note that sound names can get changed in any Minecraft or Spigot versio...
your welcome
my advice is to pretty much always google or check the docs BEFORE you post a queston
99.9999999999% of the time someone has asked the same question before and gotten a good answer
or its in the docs
the sound has to be in quotes
play sound "minecraft.sound"
wait 2 ticks
play sound "entity.warden.attack_impact" at volume 3 at pitch 1 to player
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
apply speed to player for 30 seconds
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
play sound "entity.warden.sonic_charge" at volume 2 at pitch 0 to player
wait 1 second
play sound "minecraft:entity.warden.sonic_boom" with volume 2 with pitch 0 at ~ ~ ~
make the player shoot an snowball
wait 5 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
wait 1 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
set {EquipShard::%player's uuid%.beam.lastUsed} to now
why are you switching from console commands to effects
just use effects
also using "wait __ second" is just better
it might be because your saying with instead of at
there are no errors on other lines and the other lines use at
just a theory
also use three `s around your code to create a code block
i know to use threes it jst sent weird
im using the 2 different ones bc i was testing which worked
can you send the event too?
the whole code
its hard to tell from just "wait 2 ticks" and on
graphic
too long to send
whats up
umm can we vc rq
can you send it as a file maybe?
im trying to learn something
can i help you through dms instead
how tf do i send at a file ๐ญ ๐ i am new to all ts
i dont mean the entire skript just the part that contains the event / command / whatever
on sneak toggle:
if difference between now and {EquipShard::%player's uuid%.beam.lastUsed} is less than 3 seconds:
if {EquipShard::%player%.cooldowntime} is 0:
send action bar "๐ฅ Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 3 seconds
send action bar "๐ฅ Power is Charged" to player
wait 1 second
set {EquipShard::%player%.cooldowntime} to 0
else:
if player is sneaking:
if {EquipShard::%player%.shards} is 6:
wait 2 ticks
play sound "entity.warden.attack_impact" at volume 3 at pitch 1 to player
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
apply speed to player for 30 seconds
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
play sound "minecraft:entity.warden.sonic_boom" with volume 2 with pitch 0 at ~ ~ ~
wait 1 second
play sound "minecraft:entity.warden.sonic_boom" with volume 2 with pitch 0 at ~ ~ ~
make the player shoot an snowball
wait 5 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
wait 1 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
set {EquipShard::%player's uuid%.beam.lastUsed} to now
on projectile hit:
if projectile is snowball:
damage victim by 6 hearts
on shoot:
if projectile is an snowball:
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
split it up. easier ๐ญ
alright do something for me to test
my bad
make a command
set it to trigger the part thats erroring
and see if it works
ima keep it fr, i jst started coding yesterday. idfk what ts means, ive been getting help from my other plugin dev who is teaching me. hes gone for a couple days and he told me to go to this discord server for help
i need a sound to play at a specific location and it plays in a radius of 30.
that way if your there you hear it
and if your not close enough you dont
ig just change the volume probbably
does the play sound thing work for u tho
i have an idea
i want it to play for everyone within 30 blocks of you so that ppl 10k blocks out dont hear it
mhm?
loop all players in radius 30 of blahblah:
play sound "blahblah" to loop-player
good solution
sorry for being mia ive been blowing up w dms
if this is ur actual code ur cooked gng
.
i lit started for my first time yesterday
ofc its gonna look sloppy and bad
how tf does ts work
try to use loops so u can shorten the code by a lot
loop all players in radius 30 of player:
play sound "entity.warden.sonic_boom" to loop-player
btw u dont need the minecraft: part
on sneak toggle:
if difference between now and {EquipShard::%player's uuid%.beam.lastUsed} is less than 3 seconds:
if {EquipShard::%player%.cooldowntime} is 0:
send action bar "๐ฅ Power is Drained" to player
set {EquipShard::%player%.cooldowntime} to 1
wait 3 seconds
send action bar "๐ฅ Power is Charged" to player
wait 1 second
set {EquipShard::%player%.cooldowntime} to 0
else:
if player is sneaking:
if {EquipShard::%player%.shards} is 6:
wait 2 ticks
play sound "entity.warden.attack_impact" at volume 3 at pitch 1 to player
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
apply speed to player for 30 seconds
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
loop all players in radius 30 of playe:
loop all players in radius 30 of player:
play sound "entity.warden.sonic_boom" to loop-player
play sound "minecraft:entity.warden.sonic_boom" with volume 2 with pitch 0 at ~ ~ ~
make the player shoot an snowball
wait 5 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
wait 1 tick
execute console command "execute at %player% run particle minecraft:sonic_boom ~ ~1 ~"
set {EquipShard::%player's uuid%.beam.lastUsed} to now
on projectile hit:
if projectile is snowball:
damage victim by 6 hearts
on shoot:
if projectile is an snowball:
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
wait 1 tick
play sonic boom at projectile
u still didnt indent
loop all players in radius 30 of player:
play sound "entity.warden.sonic_boom" to loop-player
with volume 1 with pitch 1
after the sound
play sound "a" with volume 1 with pitch 1 at location
glad its working
exactly
dont know why you came in here all rude
believe me i get frustrated too
but gotta remember ur roots
we were all there once
i just apologized accept it or face my wrath dick muncher holyyy
i agree with raid ngl
kay like wht
leads to a faster answer 99% of the time
i did
thats what i just said
bro are u serious
clearly you didnt search it up right
this thread wouldnt have been made if u just googled it
okay dude cmon dont be a dick
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:
play sound "entity.enderdragon.hurt" with volume 10 and pitch 1 at player
Dont work:
play raw sound "block.fire.extinguish" at {egg.pos1} with pitch...
oh wow!
your still being quite rude bro, there really is no reason to
this one gives some good insight
why would you even come in here jst to be a dick?
and im dense ๐คฆโโ๏ธ
oh well, thanks for the help beans and graphicality
have a good day or night
no problem
