Hello, so I also posted it in github but they told me to post it here so here we are.
LORE PROBLEM
Description
I can't change the lore of an item
Steps to Reproduce
set lore of loop-player's tool to "LORE 1||LORE 2"
Expected Behavior
The lore should change but it remains empty.
Errors / Screenshots
None errors.
I know, but I'm trying this:
command /toast:
trigger:
loop all items in player's inventory:
loop-item is a pickaxe
loop all the enchantments of loop-item:
send "test" to player
But I'm getting this error, why?
o
on death:
victim is a player
attacker is a player
add 1 to player's balance
Vault, Essentials (or any other plugin that makes Vault works), Skript and I think SkQuery, Skellet and skRayFall.
Try out and let me know.
variables:
{%player%.balance} = 0 # Starting balance
command /balance:
aliases: /bal
trigger:
send "&7Balance: &2$&a%{%player%.balance}%"
command /pay <player> <integer>:
trigger:
if {%player%.balance} >= arg-2:
remove arg-2 from {%player%.balance}
add arg-2 to {%arg-1%.balance}
send "&7You sent &2$&a%arg-2% &7to &a%arg-1%" to player
send "&7You received &2$&a%arg-2% &7from &a%player%" to %arg-1%
else:
send "&7You don't have enough money." to player
every second:
loop all players:
add 1 to {%loop-player%.balance}
I didn't test it but hopefully it works, by the way you can use Vault instead of creating a variable for player's balance.
It would be much easier:
add 1 to player's balance / remove 1 to player's balance / if player's balance >= x:
command /dupe:
trigger:
if player's held item isn't air:
if player's held item is a command block:
send "You can't dupe that fool!" to player
else:
give player's held item to player
else:
send "You can't dupe air!" to player
Try this and let me know.