Hello,
I tried to create custom enchants.
Like when a player is wearing chestplate,
he will receive strength but I have a problem,
When I set lore to the item that a player must wear
to get an effect, it doesn't work, (I think it's of the lore).
Here is the code:
Code (Skript):
But when I put the chest plate it doesn't give me the effect.
When I try to add the check for lore it crashes my server.
CHECK THAT CRASHES THE SERVER:
Code (Skript):
Can anyone help me??
Skript Version (do not put latest): Skript 2.1.2
Skript Author: Njol (I think)
Minecraft Version: 1.8
Addons using:
SkRayFall v1.9.18, skQuery v3.0.0-SNAPSHOT, WildSkript v1.8,
((If I did something wrong, I apologize I'm new here))
[doublepost=1572711899,1572698991][/doublepost]can anyone help me?
I tried to create custom enchants.
Like when a player is wearing chestplate,
he will receive strength but I have a problem,
When I set lore to the item that a player must wear
to get an effect, it doesn't work, (I think it's of the lore).
Here is the code:
Code (Skript):
Code:
command /items [<text>] [<player>] [<text>] [<number>]:
aliases: /it
trigger:
if arg-1 is set:
if arg-1 is "give":
if arg-2 is set:
if arg-3 is set:
if arg-3 is "Chestplate":
if sender has permission "items.give.chestplateofgods":
give arg-2 iron chestplate named "&8[&4&lChestplate of Gods&8]" with lore "&8&m-|----------------------|-||&f&lWhen you are wearing this,||&f&lyou will recieve &4&lStrength.||&8&m-|----------------------|-"
else:
send "&6&lBolty &8» &fYou don't have permission to do that!" to sender
every 1 second:
loop all players:
if loop-player is wearing iron chestplate named "&8[&4&lChestplate of Gods&8]":
apply strength 1 to the loop-player for 1 second
But when I put the chest plate it doesn't give me the effect.
When I try to add the check for lore it crashes my server.
CHECK THAT CRASHES THE SERVER:
Code (Skript):
Code:
every 1 second:
loop all players:
if loop-player is wearing iron chestplate named "&8[&4&lChestplate of Gods&8]" with lore "&8&m-|----------------------|-||&f&lWhen you are wearing this,||&f&lyou will recieve &4&lStrength.||&8&m-|----------------------|-":
apply strength 1 to the loop-player for 1 second
Can anyone help me??
Skript Version (do not put latest): Skript 2.1.2
Skript Author: Njol (I think)
Minecraft Version: 1.8
Addons using:
SkRayFall v1.9.18, skQuery v3.0.0-SNAPSHOT, WildSkript v1.8,
((If I did something wrong, I apologize I'm new here))
[doublepost=1572711899,1572698991][/doublepost]can anyone help me?