on death:
if victim is player:
if lore of attacker's tool contains "&cRaise the Dead":
set line 2 of lore of attacker's tool to "&lDire Soul "
on right click:
if lore of player's tool contains "&lDire Soul":
set line 2 of lore of player's tool to ""
wait 17 ticks
play sound "entity.ender_dragon.ambient" with pitch 1 to all players
spawn zombie at location of player
set {_item} to netherite helmet of mending
set {_item1} to leather tunic of mending
set {_item2} to leather pants of mending
set {_item3} to leather boots of mending
set {_item4} to netherite sword of sharpness 85
dye {_item} red
dye {_item1} red
dye {_item2} red
dye {_item3} red
add unbreaking 255 to {_item}
add unbreaking 255 to {_item1}
add unbreaking 255 to {_item2}
add unbreaking 255 to {_item3}
add unbreaking 255 to {_item4}
set the last spawned zombie's attack damage attribute to 10
equip last spawned zombie with {_item}
equip last spawned zombie with {_item1}
equip last spawned zombie with {_item2}
equip last spawned zombie with {_item3}
set last spawned zombie's held item to {_item4}
set last spawned zombie's max health to 10000
set last spawned zombie's health to 10000
set display name of last spawned zombie to "&c&lTHE AWAKENED"
on death:
if victim's name is "&c&lTHE AWAKENED"
clear drops
```
everytime you right click regardless of item lore it will spawn the zombie can anyone help fix
#condition not working
1 messages · Page 1 of 1 (latest)
!indent
Indentation in Skript
In skript, you need to maintain consistent indentation, meaning you cannot indent 1 line 5 spaces, and the next 7 spaces. Usually it’s recommended you use tabs, however.
A good rule of thumb is to always indent the subsequent line whenever the previous statement ends with a :, an exception to this is in command statements with items before the trigger such as permission: or aliases:
With conditional statements and loops, any code that is indented within the statement will be run as a part of the statement, other code will not be run within the statement. Here is an example of proper indentation:
now the ability doesnt work
on right click:
if lore of player's tool contains "&lDire Soul":
set line 2 of lore of player's tool to ""
wait 17 ticks
play sound "entity.ender_dragon.ambient" with pitch 1 to all players
spawn zombie at location of player
set {_item} to netherite helmet of mending
set {_item1} to leather tunic of mending
set {_item2} to leather pants of mending
set {_item3} to leather boots of mending
set {_item4} to netherite sword of sharpness 85
dye {_item} red
dye {_item1} red
dye {_item2} red
dye {_item3} red
add unbreaking 255 to {_item}
add unbreaking 255 to {_item1}
add unbreaking 255 to {_item2}
add unbreaking 255 to {_item3}
add unbreaking 255 to {_item4}
set the last spawned zombie's attack damage attribute to 10
equip last spawned zombie with {_item}
equip last spawned zombie with {_item1}
equip last spawned zombie with {_item2}
equip last spawned zombie with {_item3}
set last spawned zombie's held item to {_item4}
set last spawned zombie's max health to 10000
set last spawned zombie's health to 10000
set display name of last spawned zombie to "&c&lTHE AWAKENED"
the on right click is idented
do /sk info and send output
/sk info
...
:)))
what does that mean
i am at a loss for words
run the command /sk info in game or sk info in console
screenshot the output and post it here
congrats, youre the first person i have ever had to explain that to
this is the only error?
restart your server and look in console/logs
looks like you got a massive space before the event
no its a tab
dont
either way should be neither
you gotta check when they dont know what /sk info is
fr
it doesnt work
error?
show updated code
on death:
if victim is player:
if lore of attacker's tool contains "&cRaise the Dead":
set line 2 of lore of attacker's tool to "&4Dire Soul "
on right click:
if lore of player's tool contains "&4Dire Soul":
set line 2 of lore of player's tool to ""
wait 17 ticks
play sound "entity.ender_dragon.ambient" with pitch 1 to all players
spawn zombie at location of player
set {_item} to netherite helmet of mending
set {_item1} to leather tunic of mending
set {_item2} to leather pants of mending
set {_item3} to leather boots of mending
set {_item4} to netherite sword of sharpness 85
dye {_item} red
dye {_item1} red
dye {_item2} red
dye {_item3} red
add unbreaking 255 to {_item}
add unbreaking 255 to {_item1}
add unbreaking 255 to {_item2}
add unbreaking 255 to {_item3}
add unbreaking 255 to {_item4}
set the last spawned zombie's attack damage attribute to 10
equip last spawned zombie with {_item}
equip last spawned zombie with {_item1}
equip last spawned zombie with {_item2}
equip last spawned zombie with {_item3}
set last spawned zombie's held item to {_item4}
set last spawned zombie's max health to 10000
set last spawned zombie's health to 10000
set display name of last spawned zombie to "&c&lTHE AWAKENED"
on death:
if victim's name is "&c&lTHE AWAKENED"
clear drops
```
the on right click doesnt work at all
errors?
you should start using uncolored name/lore
would that fix the error
i mean the error doesnt matter since it works regardless, but the main error is the on right click not working at all
or if colored victim's name is
prob, not but would fix so you dont need to type the exact colors
uncolored
&c isn't that a color?
sure is
so
but why would you check the colors?
somtimes that fix the error
when you can check only the name
idk it worked on my skript
the line 36 error doesnt affect anything
the on right click ability is the main issue
it doesnt work at all
its the lore thats wrong
so add uncolored lore
and remove the colors from the if lore ...
so it will only be the lore name
its uncolored now and it still doesnt work
show code
try
lore of tool contains "&4Dire Soul"
instead of
if lore of player's tool contains "&4Dire Soul":
and remove 1 tab from all lines underneed
has nothing to do with it
doesnt work
show code
on death:
if victim is player:
if lore of attacker's tool contains "&cRaise the Dead":
set line 2 of lore of attacker's tool to "&4Dire Soul"
on right click:
lore of tool is "&4Dire Soul":
set line 2 of lore of player's tool to ""
wait 17 ticks
play sound "entity.ender_dragon.ambient" with pitch 1 to all players
spawn zombie at location of player
set {_item} to netherite helmet of mending
set {_item1} to leather tunic of mending
set {_item2} to leather pants of mending
set {_item3} to leather boots of mending
set {_item4} to netherite sword of sharpness 85
dye {_item} red
dye {_item1} red
dye {_item2} red
dye {_item3} red
add unbreaking 255 to {_item}
add unbreaking 255 to {_item1}
add unbreaking 255 to {_item2}
add unbreaking 255 to {_item3}
add unbreaking 255 to {_item4}
set the last spawned zombie's attack damage attribute to 10
equip last spawned zombie with {_item}
equip last spawned zombie with {_item1}
equip last spawned zombie with {_item2}
equip last spawned zombie with {_item3}
set last spawned zombie's held item to {_item4}
set last spawned zombie's max health to 10000
set last spawned zombie's health to 10000
set display name of last spawned zombie to "&c&lTHE AWAKENED"
on death:
if victim's name is "&c&lTHE AWAKENED"
clear drops
```
indent
on death:
if victim is player:
if lore of attacker's tool contains "&cRaise the Dead":
set line 2 of lore of attacker's tool to "&4Dire Soul"
on right click:
lore of tool contains "&4Dire Soul"
set line 2 of lore of player's tool to ""
wait 17 ticks
play sound "entity.ender_dragon.ambient" with pitch 1 to all players
spawn zombie at location of player
set {_item} to netherite helmet of mending
set {_item1} to leather tunic of mending
set {_item2} to leather pants of mending
set {_item3} to leather boots of mending
set {_item4} to netherite sword of sharpness 85
dye {_item} red
dye {_item1} red
dye {_item2} red
dye {_item3} red
add unbreaking 255 to {_item}
add unbreaking 255 to {_item1}
add unbreaking 255 to {_item2}
add unbreaking 255 to {_item3}
add unbreaking 255 to {_item4}
set the last spawned zombie's attack damage attribute to 10
equip last spawned zombie with {_item}
equip last spawned zombie with {_item1}
equip last spawned zombie with {_item2}
equip last spawned zombie with {_item3}
set last spawned zombie's held item to {_item4}
set last spawned zombie's max health to 10000
set last spawned zombie's health to 10000
set display name of last spawned zombie to "&c&lTHE AWAKENED"
on death:
if victim's name is "&c&lTHE AWAKENED"
clear drops
fixed
try now
cap
lOL
not fixed learn to code
lemme test
and it wont change anything
now it should work
nope
nope
XD
you did not change anything other then removing if
i made indents right
it was "right" before removing the if
ok
you still havent
ok anyone know like the issue
yes
bro as i said try to check the uncolored lore
what does that even mean Bro
it means that you dont have to worry about forgetting to add &c&l and all that
s o you can only check the lore "Dark souls" or whatever
how check uncolored lore
uncolored lore of player's tool contains "Dire Soul"
would i put this on the right click event
wait i put it before the if lore of player's tool contains "&4Dire Soul":
is that fine
or does it go after
replace
Stfu i was trying to help cause name instead of lore works for me
no need to be angry
you will learn skript one day
ok it works perfectly thanks
np