I'm trying to get an item to place a block. It works to the point of getting the position of the block I click but after that I'm drawing a blank. I might be trying to do it totally wrong. Any help is appreciated. ? The console doesn't say anything about it at all. https://pastebin.com/nTcKMn9u
Update:
Turns out I'm stupid and blind and placed my code inside an if statement where it doesn't belong.