Skip to content

Define (crying) obsidian using components - #6720

Open
valaphee wants to merge 1 commit into
masterfrom
valaphee/define-obsidian
Open

valaphee wants to merge 1 commit into
masterfrom
valaphee/define-obsidian

Conversation

@valaphee

@valaphee valaphee commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Obsidian was defined using the legacy blocks.json, and crying_obisidian didn't have light emission.

packed_bools face_dimming still doesn't seem to work, but isotropic works.

Requires GeyserMC/GeyserIntegratedPack#80

@valaphee

valaphee commented Sep 17, 2026 •

Copy link
Copy Markdown
Member Author

This is what BDS sends

"geyser_custom:obsidian": {
	components: {
		"minecraft:destructible_by_mining": {
			value: 50.0F
		}
		"minecraft:material_instances": {
			mappings: {}
			materials: {
				*: {
					tint_method: none
					ambient_occlusion: 2.0F
					render_method: opaque
					texture: obsidian
					packed_bools: 3B // <-- 0: Face Dimming, 1: Isotropic
				}
			}
		}
		"minecraft:geometry": {
			identifier: "minecraft:geometry.full_block_v1"
			culling: ""
			culling_layer: "minecraft:culling_layer.undefined"
			isV1Fullblock: 1B
			ignoreGeometryForIsSolid: 1B
			needsLegacyTopRotation: 0B
			culling_shape: ""
			uv_lock: 0B
			bone_visibility: {}
			useBlockTypeLightAbsorption: 0B
		}
	}
	menu_category: {
		is_hidden_in_commands: 0B
		category: none
		group: ""
	}
	vanilla_block_data: {
		material: dirt
		block_id: 10000
	}
	blockTags: [ "minecraft:diamond_tier_destructible", "minecraft:is_pickaxe_item_destructible", ]
	molangVersion: 13
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant