#How do I identify just the air block?
1 messages · Page 1 of 1 (latest)
If you are only trying to get air blocks and no other blocks, you would want to use includeTypes instead of excludeTypes
I used includeTypes
But it does not work
How exactly? What is stored in the lookBlock variable?
Don't you see?
Const lookBlock is next, friend
No I mean at runtime what is the value of the variable? It is expected that the value of the variable should be of type Block and be the closest air block in the player's view direction. What I am asking you, is how does the lookBlock variable not fulfill that expectation?
It happens all the time
It's in a runInterval
I'm not asking for when it happens, I'm asking for what happens when it is run
Use the following code directly after the const lookBlock variable declaration:
console.warn(`${lookBlock.typeId}: ${lookBlock.location.x} ${lookBlock.location.y} ${lookBlock.location.z}`);
```Let me know what you see when you run the script