mojira.dev
MC-36191

Missing stat.mineBlock for various blocks (mob spawners, cauldrons, beds, etc.)

Attempting to add a stat.mineBlock objective using the following blocks produces an Invalid objective criteria type error:

  • minecraft:bed

  • minecraft:brewing_stand

  • minecraft:cake

  • minecraft:cauldron

  • minecraft:cocoa

  • minecraft:daylight_detector_inverted

  • minecraft:fire

  • minecraft:flower_pot

  • minecraft:grass_path

  • minecraft:melon_stem

  • minecraft:pumpkin_stem

  • minecraft:mob_spawner

  • minecraft:piston_head

  • minecraft:powered_comparator

  • minecraft:unpowered_comparator

  • minecraft:powered_repeater

  • minecraft:unpowered_repeater

  • minecraft:purpur_double_slab

  • minecraft:redstone_wire

  • minecraft:reeds

  • minecraft:skull

  • minecraft:standing_banner

  • minecraft:wall_banner

  • minecraft:standing_sign

  • minecraft:wall_sign

  • minecraft:trapdoor

  • minecraft:iron_trapdoor

  • minecraft:tripwire

  • minecraft:wheat

  • minecraft:beetroots

  • minecraft:carrots

  • minecraft:potatoes

  • minecraft:nether_wart

  • minecraft:wooden_door

  • minecraft:acacia_door

  • minecraft:birch_door

  • minecraft:dark_oak_door

  • minecraft:jungle_door

  • minecraft:spruce_door

  • minecraft:iron_door

Missing blocks (not mineable)
As minecraft:end_portal_frame or minecraft:command_block both work, these blocks could be added as well.

  • minecraft:barrier

  • minecraft:bedrock

  • minecraft:end_gateway

  • minecraft:end_portal

  • minecraft:flowing_lava

  • minecraft:flowing_water

  • minecraft:lava

  • minecraft:water

  • minecraft:piston_extension

  • minecraft:portal

Counted within different statistics
Their own stats are missing, but they are counted as other (similar) blocks.

Affected block

Counts as

minecraft:double_stone_slab

minecraft:stone_slab

minecraft:double_stone_slab2

minecraft:stone_slab2

minecraft:double_wooden_slab

minecraft:wooden_slab

minecraft:lit_furnace

minecraft:furnace

minecraft:lit_redstone_lamp

minecraft:redstone_lamp

minecraft:lit_redstone_ore

minecraft:redstone_ore

minecraft:unlit_redstone_torch

minecraft:redstone_torch

----

Code analysis by @unknown can be found in this comment.

Linked issues

Attachments

Comments 40

Confirmed. Not having 380 makes sense as it is the item form of the cauldron.

Confirmed. Red mushrooms also present this issue, while brown mushrooms do not. I will update this comment for other blocks I find that can't be tracked.

EDIT: Confirmed for 1.7.4. Now present up to 14w06b. The exception is "flower", which has changed to "yellow_flower" and also works. The rest still do not.

Blocks you mine should be mined with the proper tool in order for it to count towards the score.

Blocks that are available to track but do not increment score:

1. minecraft:grass (2) - Not even with silk touch
3. minecraft:red_mushroom (39) - Brown mushrooms work, these do not.
4. minecraft:lit_furnace (62) - Counts as a furnace instead (61)
5. minecraft:farmland (60) - Counts as dirt (3)
6. minecraft:double_stone/wooden_slab (43/125) - The doubles count as a single slab (44/126)

Blocks that are listed as "Invalid objective criteria type":

1. minecraft:bed (26)
2. minecraft:mob_spawner (52)
3. minecraft:redstone_wire (55)
4. minecraft:wheat (59)
5. minecraft:standing_sign (63)
6. minecraft:wooden_door (64)
7. minecraft:wall_sign (68)
8. minecraft:iron_door (71)
9. minecraft:reeds (83)
10. minecraft:unpowered_repeater (93)
11. minecraft:powered_repeater (94)
12. minecraft:trapdoor (96)
13. minecraft:pumpkin_stem (104)
14. minecraft:melon_stem (105)
15. minecraft:nether_wart (115)
16. minecraft:brewing_stand (117)
17. minecraft:cauldron (118)
18. minecraft:flower_pot (140)
19. minecraft:carrots (141)
20. minecraft:potatoes (142)
21. minecraft:unpowered_comparator (149)
22. minecraft:powered_comparator (150)

Note: the above lists are not necessarily complete and will continue to be modified if more blocks are found

Confirmed for 14w02c/14w08a

Still a Problem in 14w11b.
This would be super useful if it was fixed.

You just have to use "stat.useItem.minecraft.cauldron" or "stat.useItem.minecraft.mob_spawner" instead of mineBlock.

30 more comments

Confirmed in 1.11.2

Confirmed 17w13a

Can confirm for MC 1.12.1.

This is fixed in 17w49a, but there are two things still not right:

1. The criteria for breaking banners now exists, but never increases score (MC-122939).

2. The criteria for breaking fire exists but never increases. Is it supposed to increase score when you put out fire with your fist? Or is it not possible to "mine" fire?

All the others exist and work as intended. I tested them all. There are some that have been re-named or act differently than they were intended to when this bug report was made, but those are the only two problematic issues.

Can confirm that the issue with fire persists in 19w14b. Should I make a separate ticket?

EDIT: New ticket at MC-147708

Dallas Rihm

(Unassigned)

Confirmed

objectives, scoreboard

Minecraft 13w42b, Minecraft 1.7.4, Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w04b, ..., Minecraft 1.11.2, Minecraft 17w13a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 17w48a

Minecraft 17w49a

Retrieved