I'm writing an add-on where I'm trying to collect all possible things in Minecraft Bedrock. Part of that collection will be creating all the different colors of beds. I've noticed that for the vast majority of colored items, each color has its own ID; however, it appears that for beds this isn't the case. According to the Minecraft Wiki, it says that Bedrock bed colors can be read from the data value... but then I can't find any way in the @minecraft/server scripting API to query that directly. I have tried querying components, dynamic properties, and tags, but got no response. I even tried looking at the localization id, and found for Cyan Bed that the id returned is item.bed.white.name...?!?!?!?
I'm apparently not alone smashing my head on the keyboard over this: https://www.reddit.com/r/MinecraftCommands/comments/1b0pmp4/can_we_detect_a_particular_bed_color_mcbe/
I'm hoping that in the future the scripting API itself will expose a way to query this directly, but in the meantime, would it at all be possible to create a utility in this library (or if someone can figure out how to actually access it, I'd be happy to just use whatever wonky workaround is necessary for now).
Thanks!
I'm writing an add-on where I'm trying to collect all possible things in Minecraft Bedrock. Part of that collection will be creating all the different colors of beds. I've noticed that for the vast majority of colored items, each color has its own ID; however, it appears that for beds this isn't the case. According to the Minecraft Wiki, it says that Bedrock bed colors can be read from the data value... but then I can't find any way in the
@minecraft/serverscripting API to query that directly. I have tried querying components, dynamic properties, and tags, but got no response. I even tried looking at the localization id, and found forCyan Bedthat the id returned isitem.bed.white.name...?!?!?!?I'm apparently not alone smashing my head on the keyboard over this: https://www.reddit.com/r/MinecraftCommands/comments/1b0pmp4/can_we_detect_a_particular_bed_color_mcbe/
I'm hoping that in the future the scripting API itself will expose a way to query this directly, but in the meantime, would it at all be possible to create a utility in this library (or if someone can figure out how to actually access it, I'd be happy to just use whatever wonky workaround is necessary for now).
Thanks!