Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /mreset [<text>] [<number>] [<number>] [<number>]:
- trigger:
- if arg 1 is not set:
- send "&7Usa /mreset <región> <Porcentaje mineral> <Porcentaje carbón> <Porcentaje hierro>" to player
- send "&7Si deseas restablecer con los porcentajes defaults usa /mreset <región>" to player
- stop
- if arg 1 is set:
- loop directory "plugins\worldedit\schematics\"'s files:
- if loop-value contains arg-1:
- make player execute command "//schem load %arg 1%"
- wait 100 tick
- make player execute command "//paste -o"
- wait 12000 ticks #12000
- make player execute command "/rg create regreset"
- wait 10 ticks
- loop all blocks in the schematic "2":
- if loop-block is stone:
- if block 1 meter below, above, east, west, north or south loop-block is air:
- if arg-2, arg-3 and arg-4 are set:
- if chance of arg-2:
- set loop-block to lapis lazuli
- if chance of arg-3:
- set loop-block to coal ore
- if chance of arg-4:
- set loop-block to iron ore
- if arg-2 is not set:
- if chance of {minas::m}:
- set loop-block to lapis lazuli
- if arg-3 is not set:
- if chance of {minas::c}:
- set loop-block to coal ore
- if arg-4 is not set:
- if chance of {minas::i}:
- set loop-block to iron ore
- wait 3600 ticks #3600
- make player execute command "/rg delete regreset"
- wait 10 ticks
- send "&a&lRegión %arg 1% reseteada." to player
- if loop-value does not contain arg-1:
- send "&4%arg 1% no es una región." to player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement