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.

Linked issues

Attachments

Comments 3

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

[media][media][media]

Notice: the attached demo world crashes on open in Preview 26.30.21 due to MCPE-238456. The dimension definitions can be stripped from the world’s behavior pack to properly test out this issue.

Hi!
Thank you for your report! 

It appears that root cause of this issue is the same as MCPE-237074, so I will resolve and link this ticket as a Duplicate. 

Quick Links: 
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Ciosciaa

(Unassigned)

Unconfirmed

Multiple

26.20.20 Preview

Retrieved