Skip to content

Instantly share code, notes, and snippets.

@yukkura
Created January 1, 2017 17:16
Show Gist options
  • Save yukkura/3ee0d2a3c49556e1b291d3f445bf18e1 to your computer and use it in GitHub Desktop.
Save yukkura/3ee0d2a3c49556e1b291d3f445bf18e1 to your computer and use it in GitHub Desktop.
import mcpi.minecraft as minecraft
import mcpi.entity as entity
mc = minecraft.Minecraft()
pos = mc.player.getPos()
for y in range(10):
for x in range(10):
mc.spawnEntity(entity.CHICKEN, pos.x + x + 1, pos.y + y, pos.z + 1, "{Passive:1}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment