#help with dragons breath

1 messages · Page 1 of 1 (latest)

frozen blazeBOT
#

x8ight suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

summer fractal
#

explainpls and explain what you want

viscid phoenix
#

okay

#
on right click:
  if player's tool is a dragon egg:
    if {cooldown::%player%} is not set:
      set {cooldown::%player%} to now
      set {_p} to player
      set {_loc} to player's location
      morkazsk play sound "entity.ender_dragon.growl" at {_loc} with pitch 1.0 and volume 2.0
      push {_p} upwards at speed 3
      wait 2.5 seconds
      apply slow falling without any particles whilst hiding the potion icon to the player for 1 second
    else:
      if difference between {cooldown::%player%} and now is less than 40 seconds:
        send "&c&lᴛʜɪѕ ᴀʙɪʟɪᴛʏ ɪѕ ᴏɴ ᴄᴏᴏʟᴅᴏᴡɴ!" to player
        play sound "entity.villager.no" with volume 5 with pitch 1 to player
      else:
        set {cooldown::%player%} to now
        set {_p} to player
        set {_loc} to player's location
        morkazsk play sound "entity.ender_dragon.growl" at {_loc} with pitch 1.0 and volume 2.0
        push {_p} upwards at speed 3
        wait 2.5 seconds
        apply slow falling without any particles whilst hiding the potion icon to the player for 1 second

my goal is to make it so before the player is shot up with "push {_p} upwards at speed 3" it spawns dragons breath on the ground

summer fractal
#

pretty sure you can spawn an area effect cloud, or maybe have the player shoot a dragon fireball downwards

#

also, skript doesnt need an addon to play sounds

viscid phoenix
#

my coder friend recommended it to me

summer fractal
#

it might be what you discovered first, but its an extra thing to need

viscid phoenix
summer fractal
#

also, you can delete all of this, as if the cooldown isnt set, the difference condition should pass anyways

storm stirrup
#

why are you writing morkazsk infront of playsound

summer fractal
#
viscid phoenix
#

dw about that 🙏

storm stirrup
#

we will 🙏

viscid phoenix
#

i jsut need help with the dragons breath

viscid phoenix
viscid phoenix
summer fractal
#

"I have airbags so its okay if i tap a few bumpers"

viscid phoenix
#

it f'ed it up @summer fractal 🤷

#

ill keep it my way :/

#

can you help with dragons breath

#

i havent done it b4

#

idk what to do

summer fractal
summer fractal
viscid phoenix
summer fractal
viscid phoenix
#

i havent done this before

summer fractal
#

like make player shoot an arrow

viscid phoenix
#

where would i fit it into my code

summer fractal
#

(this makes it in the direction a player is facing, you can also add a vector, like vector(0,1,0) would be up

summer fractal
viscid phoenix
#

i dont want to screw it up

#

do i use a # ?

summer fractal
#

if you're confused about your algorithm, write out the steps, then convert those into code 1 by 1

viscid phoenix
# summer fractal if you're confused about your algorithm, write out the steps, then convert those...

it said

[00:57:37 INFO]: Line 9: (egg.sk)
[00:57:37 INFO]: There are multiple living entities in an on click event. You must define which living entity to use.
[00:57:37 INFO]: Line: shoot a dragon fireball
[00:57:37 INFO]:
[00:57:37 INFO]: Line 26: (egg.sk)
[00:57:37 INFO]: There are multiple living entities in an on click event. You must define which living entity to use.
[00:57:37 INFO]: Line: shoot a dragon fireball
[00:57:37 INFO]:
[00:57:37 INFO]: Encountered 2 errors while reloading the config, aliases and all scripts! (258ms)

#

in console

summer fractal
summer fractal
viscid phoenix
#
on right click:
  if player's tool is a dragon egg:
    if {cooldown::%player%} is not set:
      set {cooldown::%player%} to now
      set {_p} to player
      set {_loc} to player's location
      
      # Dragon Fireball
      shoot a dragon fireball
      make the player shoot a dragon fireball at speed 10
      
      morkazsk play sound "entity.ender_dragon.growl" at {_loc} with pitch 1.0 and volume 2.0
      push {_p} upwards at speed 3
      wait 2.5 seconds
      apply slow falling without any particles whilst hiding the potion icon to the player for 1 second
    else:
      if difference between {cooldown::%player%} and now is less than 40 seconds:
        send "&c&lᴛʜɪѕ ᴀʙɪʟɪᴛʏ ɪѕ ᴏɴ ᴄᴏᴏʟᴅᴏᴡɴ!" to player
        play sound "entity.villager.no" with volume 5 with pitch 1 to player
      else:
        set {cooldown::%player%} to now
        set {_p} to player
        set {_loc} to player's location
        
        # Dragon Fireball
      shoot a dragon fireball
      make the player shoot a dragon fireball at speed 10
      
      morkazsk play sound "entity.ender_dragon.growl" at {_loc} with pitch 1.0 and volume 2.0
      push {_p} upwards at speed 3
      wait 2.5 seconds
      apply slow falling without any particles whilst hiding the potion icon to the player for 1 second
summer fractal
#

dont ping me

viscid phoenix
summer fractal
#

turn off reply pings

viscid phoenix
summer fractal
#

and also, i already told you how to fix that error

summer fractal
viscid phoenix
#

OH

#

THATS WHATY YOU MEAN

#

sorry

viscid phoenix
viscid phoenix