Gladiator
Mobs meet up in the arena



player.onChat("arena", function () {
builder.teleportTo(player.position())
builder.move(BACK, 10)
builder.move(RIGHT, 10)
builder.mark()
for (let index2 = 0; index2 < 4; index2++) {
builder.move(FORWARD, 20)
builder.turn(LEFT_TURN)
}
builder.raiseWall(POLISHED_ANDESITE, 5)
})
player.onChat("spawn", function () {
for (let index2 = 0; index2 <= good.length; index2++) {
mobs.spawn(good[index2], pos(5, 0, index2))
}
for (let index3 = 0; index3 <= bad.length; index3++) {
mobs.spawn(bad[index3], pos(5, 0, index3))
}
})
let bad: number[] = []
let good: number[] = []
let index = 0
good = [
CHICKEN,
COW,
PIG,
SHEEP,
WOLF,
VILLAGER,
MUSHROOM_COW,
SQUID,
RABBIT,
BAT,
OCELOT,
HORSE
]
bad = [
mobs.monster(CREEPER),
mobs.monster(SKELETON),
mobs.monster(ZOMBIE),
mobs.monster(SPIDER),
mobs.monster(PIG_ZOMBIE),
mobs.monster(SLIME),
mobs.monster(ENDERMAN),
mobs.monster(SILVERFISH),
mobs.monster(CAVE_SPIDER),
mobs.monster(GHAST),
mobs.monster(LAVA_SLIME),
mobs.monster(BLAZE)
]
def on_on_chat():
builder.teleport_to(player.position())
builder.move(BACK, 10)
builder.move(RIGHT, 10)
builder.mark()
for index2 in range(4):
builder.move(FORWARD, 20)
builder.turn(LEFT_TURN)
builder.raise_wall(POLISHED_ANDESITE, 5)
player.on_chat("arena", on_on_chat)
def on_on_chat2():
index22 = 0
while index22 <= len(good):
mobs.spawn(good[index22], pos(5, 0, index22))
index22 += 1
index3 = 0
while index3 <= len(bad):
mobs.spawn(bad[index3], pos(5, 0, index3))
index3 += 1
player.on_chat("spawn", on_on_chat2)
bad: List[number] = []
good: List[number] = []
index = 0
good = [CHICKEN,
COW,
PIG,
SHEEP,
WOLF,
VILLAGER,
MUSHROOM_COW,
SQUID,
RABBIT,
BAT,
OCELOT,
HORSE]
bad = [mobs.monster(CREEPER),
mobs.monster(SKELETON),
mobs.monster(ZOMBIE),
mobs.monster(SPIDER),
mobs.monster(PIG_ZOMBIE),
mobs.monster(SLIME),
mobs.monster(ENDERMAN),
mobs.monster(SILVERFISH),
mobs.monster(CAVE_SPIDER),
mobs.monster(GHAST),
mobs.monster(LAVA_SLIME),
mobs.monster(BLAZE)]
コメント