Jump to content

Help me with my custom weapon Skript


VillagerDied

Recommended Posts

heres my current skript

 

 

on left click holding iron sword
name of player's tool is "&6Lifestealer"
if difference between now and {%player's uuid%.Lifestealer.lastUsed} is less than 5 seconds:
message "&fYou have lifestealed a player!" to player
  else:
  if attacker is player
  damage victim 2 hearts
  apply potion of weakness 1 
  apply potion of slowness 1
  apply potion of blindness 1
    set {%player's uuid%.Lifestealer.lastUsed} to now

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...