cabaletta / baritone

google maps for block game
GNU Lesser General Public License v3.0
7.21k stars 1.44k forks source link

How to make baritone mine blocks with specific block state? #4175

Closed Realdoby closed 11 months ago

Realdoby commented 11 months ago

Is there a way for baritone to mine blocks with specific block states for example a stair facing north or chest facing west or a noteblock having a specific instrument and note

ZacSharp commented 11 months ago

You should be able to use the vanilla block[property=value] syntax both for #mine and #sel replace

Realdoby commented 11 months ago

You should be able to use the vanilla block[property=value] syntax both for #mine and #sel replace

there is a server that uses noteblocks as custom blocks so i want to mine a custom ore. It uses noteblock with the instrument and note 15 can you tell me how to make it mine it?

Realdoby commented 11 months ago

mine stone_stairs[facing=north] this doesn't work

ZacSharp commented 11 months ago

If you are on a post-flattening version it should be e.g. #mine note_block[instrument=xylophone,note=12]

Realdoby commented 11 months ago

what is post-flattening

ZacSharp commented 11 months ago

Versions 1.13+. The primary change to blockstates was removing the metadata byte (flattening it into the blockstate id), but Mojang also changed a lot of block ids on that occasion so e.g. noteblocks have different ids in 1.12- and 1.13+.

Realdoby commented 11 months ago

I am on 1.19.2

If you are on a post-flattening version it should be e.g. #mine note_block[instrument=xylophone,note=12] I am on 1.19.2 this is the error i get image

ZacSharp commented 11 months ago

Then note_block should work. 2023-11-16_23 19 07