Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on death of player:
- if attacker is a player:
- if attacker's tool is a netherite sword:
- if name of attacker's tool is "&dBlade Of Gaia":
- set {_p} to attacker
- add 1 to {u::%{_p}%}
- if {u::%{_p}%} is 11:
- set {u::%{_p}%} to 10
- else:
- set {_e} to "%{u::%{_p}%}%"
- enchant the attacker's tool with "sharpness %{_e}%" parsed as enchantment type
- command /sword [<text>] [<player>]:
- permission: skript.op
- trigger:
- if arg-1 is set:
- if arg-1 is "gaia":
- if arg-2 is set:
- if arg-2 is online:
- if arg-2 is alive:
- set {_p} to arg-2
- set {u::%{_p}%} to 0
- give {_p} netherite sword named "&dBlade Of Gaia"
- else:
- send "%arg-2% is not alive"
- else:
- send "%arg-2% is not online"
- else:
- set {_p} to command sender
- set {u::%{_p}%} to 0
- give a netherite sword named "&dBlade Of Gaia" to {_p}
- else:
- send "Invalid name"
- else:
- send "Must have a name"
Advertisement
Add Comment
Please, Sign In to add comment