On Death

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

  • 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.

JackyMan

Member
Nov 7, 2021
3
0
1
23
So I am using this code:

on death of wither:
broadcast ""
broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"
broadcast ""
on death of ender dragon:
broadcast ""
broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"
broadcast ""

however when I reload it gives this error:
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 49: broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"')
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 53: broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"')

Whats the problem?
 
So I am using this code:

on death of wither:
broadcast ""
broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"
broadcast ""
on death of ender dragon:
broadcast ""
broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"
broadcast ""

however when I reload it gives this error:
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 49: broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"')
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 53: broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"')

Whats the problem?
Please format your code first
 
So I am using this code:

on death of wither:
broadcast ""
broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"
broadcast ""
on death of ender dragon:
broadcast ""
broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"
broadcast ""

however when I reload it gives this error:
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 49: broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"')
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 53: broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"')

Whats the problem?
Maybe try putting a space in the empty quotes.
 
So I am using this code:

on death of wither:
broadcast ""
broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"
broadcast ""
on death of ender dragon:
broadcast ""
broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"
broadcast ""

however when I reload it gives this error:
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 49: broadcast "&c A &4&lWither&r&c was killed by %player! Nice!"')
[11:52:10 ERROR]: Invalid amount or placement of brackets. Please make sure that each opening bracket has a corresponding closing bracket. (core.sk, line 53: broadcast "&c The &4&lEnder Dragonr&r&c was killed by %player! Nice!"')

Whats the problem?

The problem is, you cant use player in a death event, or a damage event
Also you used only 1 percent (%player)

This should work
Code:
on death of wither:
    broadcast ""
    broadcast "&c A &4&lWither&r&c was killed by %attacker%&c! Nice!"
    broadcast ""

on death of ender dragon:
    broadcast ""
    broadcast "&c The &4&lEnder Dragonr&r&c was killed by %attacker%&c! Nice!"
    broadcast ""
 
The problem is, you cant use player in a death event, or a damage event
Also you used only 1 percent (%player)

This should work
Code:
on death of wither:
    broadcast ""
    broadcast "&c A &4&lWither&r&c was killed by %attacker%&c! Nice!"
    broadcast ""

on death of ender dragon:
    broadcast ""
    broadcast "&c The &4&lEnder Dragonr&r&c was killed by %attacker%&c! Nice!"
    broadcast ""
thanks worked <3!
 
Status
Not open for further replies.