Skip to content

Instantly share code, notes, and snippets.

@mirontoli
Last active January 2, 2020 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirontoli/4ce0999fcd9acf59331382ba539f66e7 to your computer and use it in GitHub Desktop.
Save mirontoli/4ce0999fcd9acf59331382ba539f66e7 to your computer and use it in GitHub Desktop.
player.onChat("panda", function () {
for (let index = 0; index < 100; index++) {
mobs.spawn(AnimalMob.Panda, positions.create(0, 10, 0))
}
})
player.onChat("sik", function () {
player.teleport(positions.create(0, 10, 0))
})
player.onItemInteracted(Item.IronShovel, function () {
blocks.place(Block.NoteBlock, positions.create(2, 0, 0))
})
player.onChat("jump", function () {
player.teleport(positions.create(0, 100, 0))
})
player.onChat("build", function () {
builder.teleportTo(positions.create(10, 0, 10))
for (let index2 = 0; index2 <= 100; index2++) {
for (let index3 = 0; index3 <= 100; index3++) {
builder.place(Block.GoldBlock)
builder.move(SixDirection.Left, 1)
}
builder.move(SixDirection.Up, 1)
builder.move(SixDirection.Right, 100)
}
})
player.say("Hallå för fan")
player.onChat("tnt", function () {
blocks.fill(
Block.TNT,
positions.create(1, 1, 1),
positions.create(30, 30, 30),
FillOperation.Replace
)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment