Masstrix / Eternal-Light

Minecraft Spigot plugin that lets you see light levels of nearby blocks.
8 stars 8 forks source link

Enhancement: Allow scanning block outside LoS #11

Open TonyGravagno opened 4 years ago

TonyGravagno commented 4 years ago

Where tickets #8, #9, and #10 are related to limiting scanning to what we Can see, this is about scanning what we Cannot see. We can get audio cues and use subtitles to get the rough x,z direction of a mob. But that tells us nothing about their Y location or distance. To find mobs behind walls, start digging in the direction of the sound, and dig up and down along a path until you find a place big enough for mobs to spawn.

With this ticket I'm requesting a mode where the UI tells us the x,y,z offset of spawnable blocks within a specified radius. I don't have a firm thought about what the UI should look like. The idea is that I'd like to know if there is a spawnable block along a specific vector even if I can't see it. There might be a gap 3 blocks to my left and 2 blocks down - that would be a -3,-2,0 offset. Maybe the UI can render that offset in the block in front of the player when this mode is activated. That indicator would only show the closest spawnable block. Once a block is found and an offset rendered, stop doing this scan - it's always looking for just one block starting from the player location and moving outward.

Rather than using /ll commands, this mode might be active if the player has some object in the offhand, maybe a torch. This technique might be applied to change behaviour as requested in the other tickets. So, with mode Spawnable, if a torch is in the offhand, find spawnable blocks that are not visible, and without the torch, scan as normal.

I've written my own plugin to find mobs within a range, using subtitles to reference their x,y,z offset. That's a bit 'cheaty'. In this case, it fits with the EL purpose to find dark places - it's not repurposing to find mobs.

Thanks!

Masstrix commented 4 years ago

I like the sound of this as it would reduce stress on the server if used and make it a more survival tool than building tool as it is now. I do want to keep the plugin simple for people using it and having to many modes and options is something that I was trying to stick away from.

Something I had in mind was adding a mode/feature that made it so instead of showing the light levels directly it would just recommend where to place a torch which could be a less cheaty feeling way on going about it.