#Aux-Value to Block States Map

1 messages · Page 1 of 1 (latest)

haughty shadow
abstract thunder
#

👀 Never thought I'd see the day a Mojangster open a forum post on this server

keen lily
#

yes

haughty shadow
#

did I do it right?

keen lily
#

Thanks so much kayla, ik a lot of people need this

keen lily
candid tartan
#

Thank you kayla!

fresh ridge
#

❤️

tropic cipher
#

what does deprecation mean

somber stump
#

No longer supported

#

But it still works

whole salmon
#

I don't want to clog this chat as it seems very useful, but may you elaborate on some examples on where you'd need to use this?

candid tartan
#

Since /fill and /setblock will not accept data as it used to do in the past

turbid gust
# whole salmon I don't want to clog this chat as it seems very useful, but may you elaborate on...

Example:Old way setblock ~ ~-1 ~ minecraft:wool 1 1 is the data part that tells which color for the wool. 1=orange

setblock ~ ~-1 ~ minecraft:wool ["color":"orange"]```The new way is eliminating the data part and only using the block properties.  

This is the same thing you have to do for custom blocks if you want to set the default properties of a block.  Normally when you place a custom block, you'd have your on_player_placing to capture information to set block properties.  Unfortunately, fill and setblock do not allow the on_player_placing (and probably the on_placed) components to trigger.  So they are just making this consistent for vanilla blocks and custom blocks.. which is another step towards maybe having data driven blocks.  If that is a goal of theirs.
opal ocean
#

this should be added to a wiki page on the Minecraft learn portal and the community wiki. It would sure come in handy.

#

I was just looking for something like this the other day for writing a command converting script to convert old executes into new ones.

abstract thunder
#

👀 Wanna make a pr to the bedrock wiki?

opal ocean
#

I don't know if I have the time right now sadly. Got a bunch of work to do atm.

#

Maybe later if I'm able.

candid tartan
#

I didn’t know wooden pressure plates had different redstone levels 🤭

sour sequoia
#

ItemStack doesnt have data

left elk
turbid gust
left elk
#

I also have made a list before this. I can share it here if people are interested

sour sequoia
latent siren
#

If you have an addon that uses 1.19.60 format version can you still use data values for /setblock or /fill

turbid gust
sour sequoia
turbid gust
#

have you played with it in preview? I do not have that to verify anything

tawny tangle
#

there's a problem with this file: When the total number of aux-values of a block is not 1, 2, 4, 8, 16, 32, there is a redundant line for the block in this excel table. For example, torch, stonebrick, etc.

rough frigate
haughty shadow
#

we generated the chart pretty quickly. I wouldn't use it for anything more than what it was intended for - which is translating values.

opal ocean
tawny tangle
#

Another problem is block states of item frame (minecraft:frame) in this chart are that in versions before 1.13.0.9, in which it uses "weirdo_direction" rather than facing_direction in current version

haughty shadow
haughty shadow
tawny tangle
#

In current version it uses "facing_direction"

#

Some other blocks in this chart maybe have similar problems, which means that not all block states in this chart are valid in current version because some are outdated

left elk
#

https://docs.google.com/spreadsheets/d/1xPL2YT_jQejTaeJOCwg4c4ALFUs4vYuL6JkwdJLOD5k/edit?usp=sharing Use the "Block States" page in this doc. It is still accurate for 1.19.70 iirc

opal ocean
abstract thunder
#

There does seem to be some mistakes ie button_pressed_bit wont accept 0 or 1 only true or false

rough frigate
tired pendant
abstract thunder
#

Im also making a lookup table which eill go live tomorrow

tired pendant
abstract thunder
#

As most people would use stone 0 just replacing it witg stone [] is good

#

Reason Im making a lookup table is bc mobile users can easily look it up

tired pendant
#

I figured but if you make an edit I think it would be good to make a note there mentioning default values don't need to be specified such as the example you provided just for further clarity

tired pendant
abstract thunder
#

Yeah something like digmc, doing a trial run on my own github

abstract thunder
turbid gust
stark yoke
#

Some states are missing from this spreadsheet, such as upper wooden slabs. I think any blocks that have non-contiguous damage values are missing states

haughty shadow
sly coral
#

wanted this so bad

junior beacon
abstract thunder
junior beacon
haughty shadow
#

Feel free to log a Github issue on the learning site - that will flag a review by our technical writers.

bright vale
abstract thunder
bright vale
abstract thunder
bright vale
#

the spreadsheet from above has it, but it's outdated

abstract thunder