Update
This commit is contained in:
parent
e1eb3e0d7c
commit
f7b6ff855f
@ -2,7 +2,7 @@
|
||||
command /clearinventory:
|
||||
description: Clear Inventory
|
||||
aliases: /clearinv
|
||||
executable by: players
|
||||
executable by: console and players
|
||||
trigger:
|
||||
if player has the permission "mirricraft.clearinventory":
|
||||
remove all items from player
|
||||
|
@ -1,7 +1,7 @@
|
||||
# --- Fly ---
|
||||
command /fly [<text>]:
|
||||
description: Fly
|
||||
executable by: players
|
||||
executable by: console and players
|
||||
trigger:
|
||||
if player has the permission "mirricraft.fly":
|
||||
if {fly.%player%} is not set:
|
||||
|
@ -72,7 +72,8 @@ command /kitpvp [<string>] [<string>]:
|
||||
loop integers between 0 and 35:
|
||||
format slot loop-integer of player with gray stained glass pane named "&7" to be unstealable
|
||||
|
||||
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 sword named "&fSotilas" to close then run [execute player command "/kitpvp setkit soldier"]
|
||||
format slot 13 of player with gold boots named "&fVauhtihirmu" to close then run [execute player command "/kitpvp setkit speedster"]
|
||||
#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 setmap farm"]
|
||||
stop
|
||||
@ -94,6 +95,13 @@ command /kitpvp [<string>] [<string>]:
|
||||
set player's leggings to iron leggings
|
||||
set player's boots to iron boots
|
||||
set slot 1 of player's inventory to 1 of iron sword
|
||||
if {kitpvp.%player%.kit} is "speedster":
|
||||
set player's helmet to gold helmet
|
||||
set player's chestplate to gold chestplate
|
||||
set player's leggings to gold leggings
|
||||
set player's boots to gold boots
|
||||
set the player's walk speed to 0.4
|
||||
set slot 1 of player's inventory to 1 of gold sword
|
||||
else:
|
||||
make player execute command "/kitpvp"
|
||||
|
||||
@ -109,7 +117,6 @@ command /kitpvp [<string>] [<string>]:
|
||||
|
||||
if {kitpvp.%player%.started} is not set:
|
||||
heal the player
|
||||
feed the player
|
||||
set {kitpvp.%player%.started} to true
|
||||
stop
|
||||
else if arg-1 is "end":
|
||||
@ -128,12 +135,13 @@ on join:
|
||||
if player's world is "minigames":
|
||||
teleport player to world "%player's world%"
|
||||
remove all items from player
|
||||
set slot 0 of player's inventory to 1 of chest named "&fKitPVP"
|
||||
set the player's walk speed to 0.2
|
||||
set slot 7 of player's inventory to 1 of chest named "&fKitPVP"
|
||||
stop
|
||||
|
||||
on respawn:
|
||||
if player's world is "minigames":
|
||||
set slot 0 of player's inventory to 1 of chest named "&fKitPVP"
|
||||
set slot 7 of player's inventory to 1 of chest named "&fKitPVP"
|
||||
stop
|
||||
|
||||
on quit:
|
||||
@ -180,6 +188,7 @@ on region exit:
|
||||
wait 1 tick
|
||||
if "%event-region%" contains "minigames_kitpvp_":
|
||||
remove all items from player
|
||||
set the player's walk speed to 0.2
|
||||
clear {kitpvp.%player%.started}
|
||||
|
||||
on hunger meter change:
|
||||
|
Loading…
Reference in New Issue
Block a user