code_language.skript:
on load:
set {pistol} to 1 of wooden hoe named "&ePistol"
set {_lore::*} to " ||&r&fPistol's Stats:||&r&fDamage: 6||&r&fFire Rate: 0.5||&r&fAmmunition: 300/300||&r&fClip: 10||&r&fReload Time: 1.5|| " split at "||"
loop size of {_lore::*} times:
set line loop-number of {pistol}'s lore to {_lore::%loop-number%}
set {pistol::max_targets} to 1
set {pistol::fire_rate} to 0.5
set {pistol::damage} to 6
set {pistol::clip} to 10
set {pistol::ammunition} to 300
set {pistol::reload_time} to 1.5
on left-click with wooden hoe:
line 2 of player's tool's lore contains "&fPistol's Stats"
cancel event
broadcast "[LC] Lore contains" #!
if {pistol::clip::%player's uuid%} != 10:
broadcast "[LC] reloading" #!
gun_reload(player, "pistol")
Posted by: x8ight from the skUnity Discord. View the thread on skUnity Discord here