KitPVP Update 10
This commit is contained in:
parent
ddaab53f23
commit
08a3a6090f
@ -28,8 +28,11 @@ command /kitpvp [<string>] [<string>]:
|
|||||||
else:
|
else:
|
||||||
format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"]
|
format slot 14 of player with iron chestplate named "&fKitit" to close then run [execute player command "/kitpvp setkit"]
|
||||||
|
|
||||||
if {kitpvp.%player%.map} and {kitpvp.%player%.kit} is set:
|
if {kitpvp.%player%.started} is set:
|
||||||
format slot 35 of player with nether star named "&fAloita" to close then run [execute player command "/kitpvp start"]
|
format slot 27 of player with barrier named "&fLopeta" to close then run [execute player command "/kitpvp end"]
|
||||||
|
else:
|
||||||
|
if {kitpvp.%player%.map} and {kitpvp.%player%.kit} is set:
|
||||||
|
format slot 35 of player with nether star named "&fAloita" to close then run [execute player command "/kitpvp start"]
|
||||||
|
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
@ -45,16 +48,19 @@ command /kitpvp [<string>] [<string>]:
|
|||||||
|
|
||||||
format slot 11 of player with snow block named "&fTalvi" to close then run [execute player command "/kitpvp setmap winter"]
|
format slot 11 of player with snow block named "&fTalvi" to close then run [execute player command "/kitpvp setmap winter"]
|
||||||
format slot 13 of player with netherrack named "&fHorna" to close then run [execute player command "/kitpvp setmap nether"]
|
format slot 13 of player with netherrack named "&fHorna" to close then run [execute player command "/kitpvp setmap nether"]
|
||||||
format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp map farm"]
|
format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp setmap farm"]
|
||||||
else:
|
else:
|
||||||
if arg-2 is "winter":
|
if arg-2 is "winter":
|
||||||
set {kitpvp.%player%.map} to "winter"
|
set {kitpvp.%player%.map} to "winter"
|
||||||
|
make player execute command "/kitpvp"
|
||||||
stop
|
stop
|
||||||
if arg-2 is "nether":
|
if arg-2 is "nether":
|
||||||
set {kitpvp.%player%.map} to "nether"
|
set {kitpvp.%player%.map} to "nether"
|
||||||
|
make player execute command "/kitpvp"
|
||||||
stop
|
stop
|
||||||
if arg-2 is "farm":
|
if arg-2 is "farm":
|
||||||
set {kitpvp.%player%.map} to "farm"
|
set {kitpvp.%player%.map} to "farm"
|
||||||
|
make player execute command "/kitpvp"
|
||||||
stop
|
stop
|
||||||
stop
|
stop
|
||||||
else if arg-1 is "setkit":
|
else if arg-1 is "setkit":
|
||||||
@ -68,33 +74,48 @@ command /kitpvp [<string>] [<string>]:
|
|||||||
|
|
||||||
format slot 11 of player with iron helmet named "&fSotilas" to close then run [execute player command "/kitpvp setkit soldier"]
|
format slot 11 of player with iron helmet named "&fSotilas" to close then run [execute player command "/kitpvp setkit soldier"]
|
||||||
#format slot 13 of player with netherrack named "&fHorna" to close then run [execute player command "/kitpvp setmap nether"]
|
#format slot 13 of player with netherrack named "&fHorna" to close then run [execute player command "/kitpvp setmap nether"]
|
||||||
#format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp map farm"]
|
#format slot 15 of player with hay bale named "&fFarmi" to close then run [execute player command "/kitpvp setmap farm"]
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
if arg-2 is "soldier":
|
if arg-2 is "soldier":
|
||||||
set {kitpvp.%player%.kit} to "soldier"
|
set {kitpvp.%player%.kit} to "soldier"
|
||||||
|
make player execute command "/kitpvp"
|
||||||
stop
|
stop
|
||||||
stop
|
stop
|
||||||
else if arg-1 is "start":
|
else if arg-1 is "start":
|
||||||
|
|
||||||
|
set gamemode of player to Survival
|
||||||
|
remove all items from player
|
||||||
|
|
||||||
if {kitpvp.%player%.kit} is set:
|
if {kitpvp.%player%.kit} is set:
|
||||||
if {kitpvp.%player%.kit} is "soldier":
|
if {kitpvp.%player%.kit} is "soldier":
|
||||||
set player's helmet to iron helmet
|
set player's helmet to iron helmet
|
||||||
set player's chestplate to iron chestplate
|
set player's chestplate to iron chestplate
|
||||||
set player's leggings to iron leggings
|
set player's leggings to iron leggings
|
||||||
set player's boots to iron boots
|
set player's boots to iron boots
|
||||||
|
set slot 1 of player's inventory to 1 of iron sword
|
||||||
else:
|
else:
|
||||||
make player execute command "/kitpvp"
|
make player execute command "/kitpvp"
|
||||||
|
|
||||||
if {kitpvp.%player%.map} is set:
|
if {kitpvp.%player%.map} is set:
|
||||||
if {kitpvp.%player%.map} is "winter":
|
if {kitpvp.%player%.map} is "winter":
|
||||||
teleport player to -48, 6, 264
|
teleport player to location -48, 6, 264
|
||||||
if {kitpvp.%player%.map} is "nether":
|
else if {kitpvp.%player%.map} is "nether":
|
||||||
teleport player to 73, 4, 269
|
teleport player to location 73, 4, 269
|
||||||
if {kitpvp.%player%.map} is "farm":
|
else if {kitpvp.%player%.map} is "farm":
|
||||||
teleport player to 57, 4, 357
|
teleport player to location 57, 4, 357
|
||||||
else:
|
else:
|
||||||
make player execute command "/kitpvp"
|
make player execute command "/kitpvp"
|
||||||
|
|
||||||
|
if {kitpvp.%player%.started} is not set:
|
||||||
|
heal the player
|
||||||
|
|
||||||
|
set {kitpvp.%player%.started} to true
|
||||||
|
stop
|
||||||
|
else if arg-1 is "end":
|
||||||
|
remove all items from player
|
||||||
|
clear {kitpvp.%player%.started}
|
||||||
|
teleport player to world "%player's world%"
|
||||||
stop
|
stop
|
||||||
else:
|
else:
|
||||||
stop
|
stop
|
||||||
@ -117,7 +138,7 @@ on respawn:
|
|||||||
on quit:
|
on quit:
|
||||||
if player's world is "minigames":
|
if player's world is "minigames":
|
||||||
remove all items from player
|
remove all items from player
|
||||||
clear {kitpvp.%player%}
|
clear {kitpvp.%player%.started}
|
||||||
stop
|
stop
|
||||||
|
|
||||||
on leftclick:
|
on leftclick:
|
||||||
@ -151,4 +172,11 @@ on pickup:
|
|||||||
|
|
||||||
on death:
|
on death:
|
||||||
if player's world is "minigames":
|
if player's world is "minigames":
|
||||||
clear drops
|
clear drops
|
||||||
|
|
||||||
|
on region exit:
|
||||||
|
if player's world is "minigames":
|
||||||
|
wait 1 tick
|
||||||
|
if "%event-region%" contains "minigames_kitpvp_":
|
||||||
|
remove all items from player
|
||||||
|
clear {kitpvp.%player%.started}
|
Loading…
Reference in New Issue
Block a user