ist es möglich in Lua die Tile Position (X,Y) des Schraubenschlüssels (Wrench) heraus zu finden?

player_x = 13
player_y = 19
player_angle = 60
build_pos_x = math.floor(player_x + math.cos(player_angle))
build_pox_y = math.floor(player_x + math.sin(player_angle))
player(id,"rot")
pivot = math.pi/180
player_rot = player(id,"rot") * pivot
player_angle = player(id,"rot")
player_angle = player_angle * pivot
player_x = (player(id,"tilex"))
player_y = (player(id,"tiley"))
build_pos_x = math.floor(player_x + math.cos(player_angle))
build_pox_y = math.floor(player_y + math.sin(player_angle)) --ich habe das x zu einem y gemacht. Ist das falsch?
msg(build_pos_x)
msg(build_pos_y)
if player(id,"rot")>=10 and player(id,"rot")<=20 then