Populate inventory with spawnteam function
parent
918e565193
commit
9115eae2b1
|
@ -242,7 +242,9 @@ command /skybattle_listspawners <number>:
|
|||
send "Spawn point %loop-number%:" to player
|
||||
send {skybattle::arena%arg-1%::spawn_location::%loop-number%} to player
|
||||
|
||||
|
||||
command /spawnteam <number> <number>:
|
||||
trigger:
|
||||
spawnteam(arg-1, arg-2)
|
||||
|
||||
function spawnteam(team: integer, spawner: integer):
|
||||
loop entries of team "IDList%{_team}%":
|
||||
|
@ -250,6 +252,27 @@ function spawnteam(team: integer, spawner: integer):
|
|||
set loop-value's gamemode to survival
|
||||
|
||||
# !!! POPULATE INVENTORY !!!
|
||||
give loop-value iron pickaxe of efficiency 3
|
||||
if {_team} is 1:
|
||||
give loop-value 64 red concrete named "§7Blocks"
|
||||
if {_team} is 2:
|
||||
give loop-value 64 yellow concrete named "§7Blocks"
|
||||
if {_team} is 3:
|
||||
give loop-value 64 red concrete named "§7Blocks"
|
||||
if {_team} is 4:
|
||||
give loop-value 64 lime concrete named "§7Blocks"
|
||||
if {_team} is 5:
|
||||
give loop-value 64 green concrete named "§7Blocks"
|
||||
if {_team} is 6:
|
||||
give loop-value 64 light blue concrete named "§7Blocks"
|
||||
if {_team} is 7:
|
||||
give loop-value 64 cyan concrete named "§7Blocks"
|
||||
if {_team} is 8:
|
||||
give loop-value 64 blue concrete named "§7Blocks"
|
||||
if {_team} is 9:
|
||||
give loop-value 64 pink concrete named "§7Blocks"
|
||||
if {_team} is 10:
|
||||
give loop-value 64 purple concrete named "§7Blocks"
|
||||
|
||||
function resetteams():
|
||||
loop 10 times:
|
||||
|
@ -288,6 +311,11 @@ function init_team_names():
|
|||
set {skybattle::team%loop-number%::name} to {_team%loop-number%}
|
||||
|
||||
|
||||
on place:
|
||||
#if {skybattle::game_status} is "playing":
|
||||
if name of held item is "§7Blocks":
|
||||
give helt item to the player
|
||||
|
||||
on death of player: # victim, attacker
|
||||
add victim's uuid to {skybattle::deadplayers::*}
|
||||
launch ball large coloured yellow fading to light green and black at victim's location with duration 0
|
||||
|
@ -317,7 +345,4 @@ on respawn:
|
|||
on player move:
|
||||
if {skybattle::stop_players} is "True":
|
||||
if {skybattle::gaming_players::*} contains player:
|
||||
cancel event
|
||||
|
||||
on food bar change:
|
||||
cancel event
|
||||
cancel event
|
Loading…
Reference in New Issue