Untitled
unknown
plain_text
a year ago
1.0 kB
9
Indexable
while True:
pos = mc.player.getTilePos()
distance = distanceBetweenPoints(pos, friend)
if blockMood == "happy":
if distance < FAR_AWAY:
target = pos.clone()
else:
blockMood = "sad"
mc.postToChat("<Бот> Пожалуйста, вернись. Я скучаю по тебе...")
elif blockMood == "sad":
if distance <= 2:
blockMood = "happy"
mc.postToChat("<Бот> Юхууу!! Ты вернулся, я иду за тобой!")
if friend != target:
line = mcdraw.getLine(friend.x, friend.y, friend.z, target.x, target.y, target.z)
for nextBlock in line[:-1]:
mc.setBlock(friend.x, friend.y, friend.z, block.AIR.id)
friend = nextBlock.clone()
friend.y = mc.getHeight(friend.x, friend.z)
mc.setBlock(friend.x, friend.y, friend.z, block.TNT.id)
time.sleep(0.25)
target = friend.clone()
time.sleep(0.25)
Editor is loading...
Leave a Comment