#sound

1 messages · Page 1 of 1 (latest)

humble pebble
#

how can i make a totem sound with skript

  ___________```
void pagoda
#

try this:
play sound "minecraft:item.totem.use"
just i guess prob wrong i am a skript noob

pale nebula
#

play sound "minecraft:item.totem.use" to attacker

void pagoda
#

why attacker?

pale nebula
#

well could be victim too

humble pebble
#

i got it

#

you guys like it?

#
    if {death::%uuid of victim%::cooldown} is not set or {death::%uuid of victim%::cooldown} is less than now:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
        play "item.totem.use" at victim's location with volume 1 and pitch 1
        show totem particles at victim's location for 1 second
        loop all players in radius 10 around victim:
            play "item.totem.use" at loop-player's location with volume 0.5 and pitch 1
        send title "&cYOU DIED" with subtitle "" to victim for 5 seconds```
humble pebble
#

@void pagoda

#

@pale nebula

#

something wrong

pale nebula
#
on death of player:
    if {death::%uuid of victim%::cooldown} is not set:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
    else if {death::%uuid of victim%::cooldown} is less than now:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
humble pebble
#

can you put it all together please

void pagoda
#

this is to compliced for me i'm outa here

humble pebble
#

@pale nebula look

#

somethings wrong now

#
    if {death::%uuid of victim%::cooldown} is not set:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
    else if {death::%uuid of victim%::cooldown} is less than now:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
        play "item.totem.use" at victim's location with volume 1 and pitch 1
        show totem particles at victim's location for 1 second
        loop all players in radius 10 around victim:
            play "item.totem.use" at loop-player's location with volume 0.5 and pitch 1
        send title "&cYOU DIED" with subtitle "" to victim for 5 seconds```
void pagoda
#

i have not yet entered the understanding of variables so i can't help

humble pebble
#

k

pale nebula
#

where did the sound go

humble pebble
humble pebble
pale nebula
#

play sound "item.totem.use" with volume 0.5 and pitch 1 at loop-player's location

humble pebble
#

lol when i add things i mess up

pale nebula
#
on death of player:
    if {death::%uuid of victim%::cooldown} is not set:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
    else if {death::%uuid of victim%::cooldown} is less than now:
        set {death::%uuid of victim%::cooldown} to now + 30 seconds
    play sound "item.totem.use" with volume 0.5 and pitch 1 at victim's location
    show totem particles at victim's location for 1 second
    loop all players in radius 10 around victim:
        play sound "item.totem.use" with volume 0.5 and pitch 1 at loop-player's location
    send title "&cYOU DIED" with subtitle "" to victim for 5 seconds