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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
clear {my-variable::*} # all variables that start with "my-variable" will be deleted.
Well not exactly the same but kind of; storing objects by UUID is just better in-case the user has changed of name, so if I used {xp-enchant::%player%} and the player changed their name, they would lose all the xp they had on the tool.i dont really get it, if i use {xp-enchant::%player's uuid%} is it just same as {xp-enchant::%player%} ??
i want to have a pickaxe with its own value if you move or break plz
They basically told you how to do it. Spoon feeding is frowned upon so here are the docs: https://docs.skunity.com/about the uuid thx
and my issue..
can you send the code of it how i want it to work i still dont get it sorry
[doublepost=1521720330,1521718990][/doublepost]everyone gets the enchants on the lore on block break if the lore isnt set and on pickup and on anymove
[doublepost=1521720362][/doublepost]but i still dont know how to ride the code can you help me plz
Then learn. Here is the link to the docs: https://docs.skunity.com/i am just not so good at scripting, that why i was wondering if anyone could help me to send the code plz ?
options:
lore0: Whatever lore you want or have already written
on any move:
if player is holding a pickaxe:
if lore of player's tool does not contain "&a&lPickaxe":
set {xpenchant::%uuid of player%} to "nothing?" #< -- Putting that there, because thats what you said
set line 3 of lore of player's tool to "&a&lPickaxe"
set line 4 of lore of player's tool to "&8(&a%{xpenchant::%uuid of player%}% &7/ &750&8)"
set line 5 of lore of player's tool to "{@lore0}"
stop
on break of ore:
if player is holding a pickaxe:
if lore of player's tool contains "&a&lPickaxe":
add 1 to {xpenchant::%uuid of player%}
set line 4 of lore of player's tool to "&8(&a%{xpenchant::%uuid of player%}% &7/ &750&8)"
on pickup:
if event-item is a pickaxe:
set {_tag} to tag "value" of nbt of event-item
if {_tag} is not set:
add "{value:1}" to nbt of event-item
on inventory click:
if clicked item is a pickaxe:
set {_tag} to tag "value" of nbt of clicked item
if {_tag} is not set:
add "{value:1}" to nbt of clicked item
on break:
player's held item is a pickaxe
set {_tag} to tag "value" of nbt of player's held item
if {_tag} is not set:
add "{value:1}" to nbt of player's held item
else:
set {_tag} to {_tag} parsed as integer
add 1 to {_tag}
add "{value:%{_tag}%}" to nbt of player's held item
quick question, how do i add it to my lore as i did
with the format
set line 3 of lore of player's tool to "&a&lPickaxe"
set line 4 of lore of player's tool to "&8(&a%{xpenchant.%player%}% &7/ &750&8)"
set line 5 of lore of player's tool to "{@lore0}"
thx for the the rest of the help <3
on break:
player's held item is a pickaxe
set {_tag} to tag "value" of nbt of player's held item
if {_tag} is not set:
add "{value:1}" to nbt of player's held item
set line 3 of lore of player's held item to "&a&lPickaxe"
set line 4 of lore of player's held item to "&8(&a1 &7/ &750&8)"
set line 5 of lore of player's held item to "{@lore0}"
else:
set {_tag} to {_tag} parsed as integer
add 1 to {_tag}
add "{value:%{_tag}%}" to nbt of player's held item
set line 4 of lore of player's held item to "&8(&a%{_tag}% &7/ &750&8)"
#This is one of the many ways to accomplish what you want.
I guess you can't have multiple options in a contains statement? I made an alternative method above ^i got a error http://prntscr.com/ix7ugw
I just updated my post. Take a look at it now.i am sorry but i am not very good at script can you sendt the full code <3
thx for the help
on break:
player's held item is a pickaxe
set {_tag} to tag "value" of nbt of player's held item
if {_tag} is not set:
add "{value:1}" to nbt of player's held item
set line 3 of lore of player's held item to "&a&lPickaxe"
set line 4 of lore of player's held item to "&8(&a1 &7/ &750&8)"
set line 5 of lore of player's held item to "{@lore0}"
else:
set {_tag} to {_tag} parsed as integer
add 1 to {_tag}
add "{value:%{_tag}%}" to nbt of player's held item
set line 4 of lore of player's held item to "&8(&a%{_tag}% &7/ &750&8)"