Solved Mine reset lite skript

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

FrostPVP™️

Active Member
Feb 12, 2021
63
3
8
25
USA
I need a skript were /mrl erase (mine) is /mrl delete (mine)
or both work as deleting a mine
Thank You <3
 
Code:
command /mrlerase [<text>]:
  trigger:
    if arg-1 is "Minename1":
      set blocks within {flocmine1} and {slocmine1} to air
      send "&a%arg-1% deleted successfully!" to player
    if arg-1 is "Minename2":
      set blocks within {flocmine2} and {slocmine2} to air
      send "&a%arg-1% &adeleted successfully!" to player

command /mrldelete [<text>]:
  trigger:
    if arg-1 is "Minename1":
      set blocks within {flocmine1} and {slocmine1} to air
      send "&a%arg-1% deleted successfully!" to player
    if arg-1 is "Minename2":
      set blocks within {flocmine2} and {slocmine2} to air
      send "&a%arg-1% &adeleted successfully!" to player

#Stand on the locations and use !set {locname} to location so those variables work.
#Don't forget to change variable names in the code if you name them differently.
#You also need to check that "allow op players use effect commands" and "effect commands" are true in the skript config.
#And you just do it so on and on..

Aliases didn't work for some reason so I made 2 commands if you don't want to copy paste it over and over for both of them you can delete one of them.
I also suggest you would use "Permission: mine.delete" so not everyone could use it.
 
Code:
command /mrlerase [<text>]:
  trigger:
    if arg-1 is "Minename1":
      set blocks within {flocmine1} and {slocmine1} to air
      send "&a%arg-1% deleted successfully!" to player
    if arg-1 is "Minename2":
      set blocks within {flocmine2} and {slocmine2} to air
      send "&a%arg-1% &adeleted successfully!" to player

command /mrldelete [<text>]:
  trigger:
    if arg-1 is "Minename1":
      set blocks within {flocmine1} and {slocmine1} to air
      send "&a%arg-1% deleted successfully!" to player
    if arg-1 is "Minename2":
      set blocks within {flocmine2} and {slocmine2} to air
      send "&a%arg-1% &adeleted successfully!" to player

#Stand on the locations and use !set {locname} to location so those variables work.
#Don't forget to change variable names in the code if you name them differently.
#You also need to check that "allow op players use effect commands" and "effect commands" are true in the skript config.
#And you just do it so on and on..

Aliases didn't work for some reason so I made 2 commands if you don't want to copy paste it over and over for both of them you can delete one of them.
I also suggest you would use "Permission: mine.delete" so not everyone could use it.
Tysm it's. Prefect! <3