Skip to content

Commit 231cdce

Browse files
committed
add block entity data to F3
add Disable Block Entity Textures setting to GUI
1 parent 3ebc0d1 commit 231cdce

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/optionsGuiScheme.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ export const guiOptionsScheme: {
112112
},
113113
rendererPerfDebugOverlay: {
114114
text: 'Performance Debug',
115+
},
116+
disableBlockEntityTextures: {
117+
tooltip: 'Disables rendering of textures for block entities like signs, banners, heads, and maps',
115118
}
116119
},
117120
{

src/react/DebugOverlay.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,18 @@ export default () => {
224224
{cursorBlock ? (
225225
<p>Looking at: {cursorBlock.position.x} {cursorBlock.position.y} {cursorBlock.position.z}</p>
226226
) : ''}
227+
{cursorBlock?.blockEntity && <p>Block Entity Data:</p>}
228+
{cursorBlock?.blockEntity && (<>
229+
<div className={styles.empty} />
230+
{Object.entries(cursorBlock.blockEntity).map(([key, value]: [string, any]) => {
231+
const stringified = JSON.stringify(value)
232+
return (
233+
<p key={key}>
234+
{key}: {stringified.length}
235+
</p>
236+
)
237+
})}
238+
</>)}
227239
{cursorEntity ? (<>
228240
<div className={styles.empty} />
229241
<p>E: {cursorEntity.name}</p>

0 commit comments

Comments
 (0)