File "C:\Users\е\Desktop\t2\game\game.py", line 76, in
mc.setBlock(mc,treasure_x,treasure_y,treasure_z,block.DIAMOND_BLOCK.id)
NameError: name 'treasure_x' is not defined
import mcpi.minecraft as minecraft
import mcpi.block as block
import time
def checkHit(mc,treasure_x,treasure_y,treasure_z,exit_x,exit_y,exit_z):
описание функции
x1=pos.x+1
y=pos.y
z1=pos.z+1
FILENAME = "t.csv"
f = open(FILENAME,"r")
z = z1
for line in f.readline():
data = line.split(",")
x = x1
for cell in data:
a = FLOOR
b = GAP
elif cell == "2":
treasure_x = x
treasure_y = y
treasure_z = z
z2 = z
x2 = x
//ругается на неполучение treasure_x
mc.setBlock(mc,treasure_x,treasure_y,treasure_z,block.DIAMOND_BLOCK.id)
mc.player.setPos(start_x,y,start_z)