familychicken

Untitled

Apr 16th, 2022
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. on damage:
  2. set maximum damage delay of victim to 0.1 ticks
  3. set {_fd} to getAtk(player's tool)
  4. set {_x} to random number between -1 and 1
  5. set {_y} to random number between 0.1 and 1
  6. set {_z} to random number between -1 and 1
  7. bind hologram "&c- %{_fd}%" to victim for 1 second offset by {_x}, {_y}, {_z}
  8.  
  9. on join:
  10. give player iron sword with nbt "{baseatk:10}"
  11.  
  12. function getAtk(item: item) :: number:
  13. if {_item} is air:
  14. stop
  15. set {_num} to tag "baseatk" of nbt of {_item}
  16. return {_nun}
  17.  
  18. command /weaponcreate <number>:
  19. permission: skript.admin
  20. trigger:
  21. give player player's tool with nbt "{baseatk:%arg-1%}"
  22.  
Advertisement
Add Comment
Please, Sign In to add comment