# -*- coding: utf-8 -*-
"""
Created on Wed Jan 27 15:55:24 2021

@author: user
"""

from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z = mc.player.getTilePos()
number = 1
for i in range (8):
    for j in range(number):
        mc.spawnEntity(x,y,z,60)
    number = number*2
    mc.postToChat("生成了" + str(number) + "隻蠹魚")
d495590518d8d165261f39db3249b87029de5c07
<mask token>

<mask token>
for i in range(8):
    for j in range(number):
        mc.spawnEntity(x, y, z, 60)
    number = number * 2
    mc.postToChat('生成了' + str(number) + '隻蠹魚')

<mask token>
mc = Minecraft.create()
x, y, z = mc.player.getTilePos()
number = 1
for i in range(8):
    for j in range(number):
        mc.spawnEntity(x, y, z, 60)
    number = number * 2
    mc.postToChat('生成了' + str(number) + '隻蠹魚')

<mask token>
from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x, y, z = mc.player.getTilePos()
number = 1
for i in range(8):
    for j in range(number):
        mc.spawnEntity(x, y, z, 60)
    number = number * 2
    mc.postToChat('生成了' + str(number) + '隻蠹魚')

# -*- coding: utf-8 -*-
"""
Created on Wed Jan 27 15:55:24 2021

@author: user
"""

from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z = mc.player.getTilePos()
number = 1
for i in range (8):
    for j in range(number):
        mc.spawnEntity(x,y,z,60)
    number = number*2
    mc.postToChat("生成了" + str(number) + "隻蠹魚")