Damage to monsters inside the pizza-shape

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

DittoNut

Member
Mar 11, 2024
4
0
1
37
다운로드.jpeg

this shaped. i dont know a word that means this!

title says it!
 
It'd probably be easier to do this with vectors but I'm bad at vectors so here's what I've got for you.
Python:
options:
    damage: 5
    horizontal: 3
    infront: 3

command wedgeattack:
    permission: *
    trigger:
        set {_locbasis} to block {@infront} infront of player
        set {_loc1} to block {@horizontal} right of {_locbasis}
        set {_loc2} to block {@horizontal} left of {_locbasis}
        set {_loc3} to block 0.5 infront of {_locbasis}
        set {_loc4} to player's location
        loop blocks within {_loc1} and {_loc2} and {_loc3} and {_loc4}:
            show 2 flame with speed 0 at loop-value
            loop all entities in radius 2 of loop-value:
                loop-entity is not player:
                    damage loop-entity by {@damage} hearts
Should work but untested.