1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Damage loop-entity accounting for armour.

Discussion in 'Skript' started by Jay_2004, Dec 15, 2018.

Thread Status:
Not open for further replies.
  1. Jay_2004

    Jay_2004 Member

    Joined:
    Feb 21, 2017
    Messages:
    13
    Likes Received:
    1
    I'm trying to make a super smash mobs remix using item projectiles. Having trouble damaging entities accounting for what armour they have on.
    Example I damage loop-entity by 2 with no armour and it deals 2 hearts of damage while I damage loop-entity by 2 with full diamond armour and does the same damage.
    Code (Text):
    1.  
    2. on item projectile hit:
    3.     drawDot count 1, particle "explosionlarge", center event-location, rainbowMode false, visibleRange 32, pulseDelay 0, keepFor 1 ticks
    4.     play raw sound "random.explode" at event-location with pitch 2 volume 1.5
    5.     loop entities in radius 0.2 around event-location:
    6.         damage loop-entity by 2
    7.         stop loop
    8.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...