Repository navigation
draw the block outline and empty the inventory on a shift-clicked creative trash slot - #864
Merged
Merged
Conversation
…how the spectator crosshair on interactable blocks
…ote the pack outline
marie-bnl
pushed a commit
to marie-bnl/PommeMC-Client
that referenced
this pull request
Nov 2, 2026
…ative trash slot (PommeMC#864) * draw the block outline and empty the inventory on a shift-clicked creative trash slot * draw the outline after entities, hide it while spectating a mob and show the spectator crosshair on interactable blocks * take the outline and spectator crosshair target from the camera and note the pack outline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Summary
two items from #776:
VoxelShape.forAllEdges(collinear edges merged, so stairs and fences have no seams) and draw as screen-space quads likerendertype_lines,max(2.5, width/1920*2.5)px wide, black at 40% alpha. hidden with f1; in spectator only on blocks with a menu or portals; hidden in adventure for now. spectators also get the crosshair on those blocks (Hud.canRenderCrosshairForSpectator)the harness gains
modifiers = { shift = true }andhover = { tab = ... }/hover = { trash = true }for the trash script.todo left: adventure-mode
can_break/can_place_onoutlines, drawing the outline after translucent terrain for translucent blocks, the high-contrast outline option, the outline under a shader pack, and picking from a spectated entity (nothing is targeted while spectating one).Reference
LevelExtractor.extractBlockOutline,LevelRenderer.submitBlockOutline,GameRenderer.shouldRenderBlockOutline,Hud.canRenderCrosshairForSpectator,ShapeOutlineFeatureRenderer,VoxelShape/DiscreteVoxelShape.forAllEdges,RenderPipelines.LINES_TRANSLUCENT,rendertype_lines.vsh,Window.getAppropriateLineWidth,BlockBehaviour.showAsInteractableInSpectatorMode,CreativeModeInventoryScreen.slotClickedTesting
blocks/block_outlineanditems/creative_trash; the outline shots line up with vanilla's in the parity harness (stone, slab, stairs, fence, f1, spectator)just ingame-testpasses