TNT Spleef
An explosive variation of Spleef!

player.onChat("spleef", function () {
blocks.fill(
BEDROCK,
pos(0, 50, 0),
pos(20, 50, 20),
FillOperation.Replace
)
blocks.fill(
REDSTONE_TORCH,
pos(0, 51, 0),
pos(20, 51, 20),
FillOperation.Replace
)
blocks.fill(
DIRT,
pos(0, 52, 0),
pos(20, 52, 20),
FillOperation.Replace
)
mobs.teleportToPosition(
mobs.target(ALL_PLAYERS),
pos(10, 55, 10)
)
mobs.give(
mobs.target(ALL_PLAYERS),
TNT,
64
)
gameplay.setGameMode(
SURVIVAL,
mobs.target(ALL_PLAYERS)
)
})
def on_on_chat():
blocks.fill(BEDROCK,
pos(0, 50, 0),
pos(20, 50, 20),
FillOperation.REPLACE)
blocks.fill(REDSTONE_TORCH,
pos(0, 51, 0),
pos(20, 51, 20),
FillOperation.REPLACE)
blocks.fill(DIRT, pos(0, 52, 0), pos(20, 52, 20), FillOperation.REPLACE)
mobs.teleport_to_position(mobs.target(ALL_PLAYERS), pos(10, 55, 10))
mobs.give(mobs.target(ALL_PLAYERS), TNT, 64)
gameplay.set_game_mode(SURVIVAL, mobs.target(ALL_PLAYERS))
player.on_chat("spleef", on_on_chat)
コメント