How can I make that the forcefield push player without a permission 5 block away:
My code
Thank you
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