Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &e[&42 &9Donkeys&e]
- command /pregen [<text>] [<integer>] [<text>] [<text>]:
- aliases:/makeworld
- permission: skript.op
- trigger:
- if arg-1 or arg-2 or arg-3 is not set:
- message "&b/pregen &6[&cWorld] &6[&cRadius&6] &6[&cSeed&6] &6[&cGerationType&6]"
- message "&6GenerationType: &7""&cY/O&7"" &b=&f Overworld, &7""&cN&7"" &b=&f Nether, &7""&cCW&7"" &b=&f CityWorld"
- stop
- if arg-3 is set:
- if arg-3 is "r":
- set {makeworld::seedtemp} to a random integer between 10000000000000000 and 100000000000000000
- set {makeworld::negativecounter} to a random integer between 1 and 2
- if {makeworld::negativecounter} is 2:
- set {makeworld::seed} to "-%{makeworld::seedtemp}%"
- else:
- set {makeworld::seed} to "%{makeworld::seedtemp}%"
- else:
- set {makeworld::seed} to "%arg-3%"
- if arg-4 is not set:
- open chest with 3 rows named "&5&lGenerator" to player
- wait 1 tick
- set {_smloopnum} to 0
- loop 27 times:
- format slot {_smloopnum} of player with 1 of black stained glass pane named " " to be unstealable
- add 1 to {_smloopnum}
- format slot 10 of player with 1 of grass named "&eOverWorld" to close then run [make player execute command "/pregen %arg-1% %arg-2% %{makeworld::seed}% o"]
- format slot 13 of player with 1 of netherrack named "&4Nether" to close then run [make player execute command "/pregen %arg-1% %arg-2% %{makeworld::seed}% n"]
- format slot 16 of player with 1 of quartz block named "&bCityWorld" to close then run [make player execute command "/pregen %arg-1% %arg-2% %{makeworld::seed}% cw"]
- stop
- if arg-4 is "cityworld" or "cw":
- make player execute command "/b &4Warning! &cStarting to pregen world &3%arg-1% &bCityWorld"
- message "{@P}&7 Seed Used: &a%{makeworld::seed}%"
- wait 1 seconds
- execute console command "/mw create %arg-1% plugin:CityWorld %{makeworld::seed}%"
- wait 1 tick
- execute console command "/mw load %arg-1%"
- wait 5 seconds
- make player execute command "/b Starting To Pregen &3%arg-1%"
- wait 1 seconds
- make player execute command "/wb %arg-1% set %arg-2% %arg-2% 0 0"
- wait 1 seconds
- make player execute command "/wb %arg-1% fill 100 208"
- wait 1 seconds
- make player execute command "/wb fill confirm"
- set {_tp} to location of player
- set {_world} to arg-1 parsed as world
- teleport the command sender to the spawn point of {_world}
- make player execute command "/permaday"
- make player execute command "/worldborder center 0 0"
- set {_border} to arg-2 * 2
- set {_border} to {_border} -1
- make player execute command "/worldborder set %{_border}%"
- teleport the player to {_tp}
- if arg-4 is "nether" or "n":
- make player execute command "/b &4Warning! &cStarting to pregen world &3%arg-1%"
- message "{@P}&7 Seed Used: &a%{makeworld::seed}%"
- wait 1 seconds
- execute console command "/mw create %arg-1% Nether %{makeworld::seed}%"
- wait 1 tick
- execute console command "/mw load %arg-1%"
- wait 5 seconds
- make player execute command "/b Starting To Pregen &3%arg-1%"
- wait 1 seconds
- make player execute command "/wb %arg-1% set %arg-2% %arg-2% 0 0"
- wait 1 seconds
- make player execute command "/wb %arg-1% fill 100 208"
- wait 1 seconds
- make player execute command "/wb fill confirm"
- if arg-4 is "y" or "overworld" or "o":
- make player execute command "/b &4Warning! &cStarting to pregen world &3%arg-1%"
- message "{@P}&7 Seed Used: &a%{makeworld::seed}%"
- wait 1 seconds
- execute console command "/mw create %arg-1% Normal %{makeworld::seed}%"
- wait 1 tick
- execute console command "/mw load %arg-1%"
- wait 5 seconds
- make player execute command "/b Starting To Pregen &3%arg-1%"
- wait 1 seconds
- make player execute command "/wb %arg-1% set %arg-2% %arg-2% 0 0"
- wait 1 seconds
- make player execute command "/wb %arg-1% fill 100 208"
- wait 1 seconds
- make player execute command "/wb fill confirm"
- set {_tp} to location of player
- set {_world} to arg-1 parsed as world
- teleport the command sender to the spawn point of {_world}
- make player execute command "/permaday"
- make player execute command "/worldborder center 0 0"
- set {_border} to arg-2 * 2
- set {_border} to {_border} -1
- make player execute command "/worldborder set %{_border}%"
- teleport the player to {_tp}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement