ForceField

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

Status
Not open for further replies.

Fridious

Member
Jun 23, 2017
33
0
0
46
How can I make that the forcefield push player without a permission 5 block away:
My code
code_language.skript:
command /forcefieldon:
    trigger:
        if player has permission "forcefield.use":
            drawComplexCircle particle "redstone", RGB 5, 255, 193, center player, id "%player%-forcefield1", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 23, yRotation 120, zRotation 0
            drawComplexCircle particle "redstone", RGB 0, 255, 0, center player, id "%player%-forcefield2", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 70, yRotation 10, zRotation 0
            drawComplexCircle particle "redstone", RGB 255, 0, 0, center player, id "%player%-forcefield3", randomRotation false, radius .8, density 20, start 0, visibleRange 100, xRotation 0, yRotation 60, zRotation 0
            drawComplexCircle particle "redstone", RGB 0, 0, 255, center player, id "%player%-forcefield4", randomRotation true, radius .8, density 20, start 0, visibleRange 100, xRotation 25, yRotation 54, zRotation 0
            set {forcefield.%player%} to true
                           
command /forcefieldoff:
    trigger:
        set {forcefield.%player%} to false
        stopEffect id "%player%-forcefield1"
        stopEffect id "%player%-forcefield2"
        stopEffect id "%player%-forcefield3"
        stopEffect id "%player%-forcefield4"
        stop

Thank you
 
Status
Not open for further replies.