首页 > 其他分享 >超出范围弹射出去

超出范围弹射出去

时间:2023-04-02 17:34:55浏览次数:38  
标签:超出范围 mc 弹射 pop player 出去 minecraft

import mcpi.minecraft as minecraft

mc = minecraft.Minecraft.create()

# 在一个 3*3*3 的空间里面就单射60m
while True:
    pop = mc.player.getTilePos()
    if pop.x < 3 and pop.x > -3 and pop.y < 3 and pop.y > -3 and pop.z < 3 and pop.z > -3:
        mc.player.setPos(pop.x,pop.y+60,pop.z)

 

标签:超出范围,mc,弹射,pop,player,出去,minecraft
From: https://www.cnblogs.com/Wesuiliye/p/17280847.html

相关文章