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.

How do I make an AOE weapon with custom health variables?

Discussion in 'Skript' started by Locutusque, Nov 5, 2022.

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

    Locutusque Member

    Joined:
    Nov 5, 2022
    Messages:
    3
    Likes Received:
    0
    I'm working on an RPG game and I've created a health system to bypass the 1024 health cap, but I can't use the normal damage component. I have to subtract the health variable from mobs in a 10-block radius, and I have no idea how to do this. Does anyone know a workaround to this?
     
  2. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    Code (Text):
    1. on rightclick:
    2.     if player's tool is an iron sword:
    3.         loop all entities in radius 10 of player:
    4.             if loop-entity is not player:
    5.                 #do your damage
    This is how you find entities in a radius.
     
  3. Locutusque

    Locutusque Member

    Joined:
    Nov 5, 2022
    Messages:
    3
    Likes Received:
    0
  4. MultiverShaun

    MultiverShaun Member

    Joined:
    Aug 8, 2022
    Messages:
    23
    Likes Received:
    2
    Quite a late reply, but in spigot.yml you can easily adjust the health cap in settings -> attribute -> maxHealth.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...