Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- set maximum damage delay of victim to 0.1 ticks
- set {_fd} to getAtk(player's tool)
- set {_x} to random number between -1 and 1
- set {_y} to random number between 0.1 and 1
- set {_z} to random number between -1 and 1
- bind hologram "&c- %{_fd}%" to victim for 1 second offset by {_x}, {_y}, {_z}
- on join:
- give player iron sword with nbt "{baseatk:10}"
- function getAtk(item: item) :: number:
- if {_item} is air:
- stop
- set {_num} to tag "baseatk" of nbt of {_item}
- return {_nun}
- command /weaponcreate <number>:
- permission: skript.admin
- trigger:
- give player player's tool with nbt "{baseatk:%arg-1%}"
Advertisement
Add Comment
Please, Sign In to add comment