#LethalScan
71 messages · Page 1 of 1 (latest)
Forgot to mention but it's supposed to be kinda like the lethal company scan feature? would be more like it if I finish
yes
xray?
ehhhh, it's only what's visible currently so it's not really xray
decided to optimize it a bit, went from like 20ms to idk like 1 ish but it depends on a lot
What version is this mod for?
I really like this. the animation looks pretty smooth and it would work well for a scanner mod that scans for specific blocks (or tags). very cool
Writing it for 1.20.1 rn
why does it jitter?
like the expansion/compression
is that intentional
oh is it because you're spamming the keybind?
Ok.
yep, will be more visual later one I add the actual scan looking thing that lethal company does
I would like a copy (if that's ok). Is it ok if you write this mod for 1.19.3 (Because that's my main client)? Or it isn't worth your time?
1.19.3 is such a non standard version lol
Maybe we’ll see
k
This is the best I think that I'm capable of doing related to checking if a block is visible
Nice
I like it
I'd like to use it in case it would scan only on bind and stay for a while and without always blinking animation
Sorry I should've clarified this, the blinking is because I was spamming the scan button
The idea is to have it bound to right click and only scan if you have aren't targeting a "right-clickable" block and aren't holding an item with right click functionality(ex, a shovel on grass)
oh wow than everything is just awesome
good luck trying to get is block u are looking at interactable 
oh god is that hard

oh no
u are not interacting with block
wut
u are sending a packet which says what block u clicked
ah...
and then server desides should u open crafting table screen or place a block next to it
so without breaking mod/server support I basically can't implement that? Not sure how to go about this then
theoreticly u can make a list of every interactable block but it is too not professional and incompatible with some unusual server things
and incompatible with other mods too
Yep that's exactly what i mean by without breaking mod/server support :p
but tbh right-click is not a good idea
Perhaps I just bind it to another key? That would kinda go against the mods general idea of it being like lethal company, alternatively I could just always do it
than what i mean
tbh i haven't played lethal company lol
Perhaps it could be okay on something like left alt 🤷♂️
i didnt know it was exactly idea of right mouse button
Yeah so basically in lethal company, you can scan loot in front of you and it's a decently large enough part of the game.
mb middle click?
oh that could work well
yeah and of course make it rebindable
i will bind it to keyboead
thank you ❤️
❤️ 
Actually... What would we do about the select block functionality then... Maybe I just default to something like left alt and people can rebind it to whatever they want
🤷♂️
@light otter Hi again. I was updating my mod and i'd like to share my experience.
Previously i said that there is no way to get is block interactable, but now it seems that i was wrong.
I remembered that in spectator mode crosshair is rendered only in case u are looking at mod or interactable block, so i desided to check it. And i found it, way to get is block interactable, sharing code on screenshot
So it looks like it tries to get a screen from a block and checks is it null
But even now u cannot predict what will server respond with, but i think it is not that bad and still useable
If anything i still think that a binded key is better than mouse, but just in case u would like to use it
Huh, does that work with something like buttons even?
Yeah, sadly me too
they have no screen