mojira.dev
MCPE-237077

Custom block destruction particle counts do not vary across permutations

The minecraft:destruction_particles component’s particle_count property does not properly vary across permutation definitions of a custom block.

Demonstration

The attached screenshots demonstrate this issue. Both screenshots showcase a single custom block type. The default permutation (with the obsidian texture) is defined to emit 250 particles on destructoin. Its behavior is correct. The alternative permutation (with the glowstone texture) is defined to emit only 10. Its behavior is incorrect.

Reproduction

The example block shown in the screenshots is as follows:

{
	"format_version": "1.26.20",
	"minecraft:block": {
		"description": {
			"identifier": "bug_particles:custom_block",
			
			"states": {
				"bug_particles:alternative": [false, true]
			}
		},
		
		"components": {
			"minecraft:geometry": "minecraft:geometry.full_block",
			"minecraft:material_instances": {
				"*": {"texture": "obsidian"}
			},
			
			"minecraft:destruction_particles": {"particle_count": 250}
		},
		"permutations": [
			{
				"condition": "q.block_state('bug_particles:alternative')",
				"components": {
					"minecraft:material_instances": {
						"*": {"texture": "glowstone"}
					},
					
					"minecraft:destruction_particles": {"particle_count": 10}
				}
			}
		]
	}
}

The demo screenshots and code are taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media]

Ciosciaa

(Unassigned)

Unconfirmed

Multiple

26.20.20 Preview

Retrieved