wisp-forest / owo-lib

Open ωorthωhile Operations, yes the acronym was "totally accidental"
https://modrinth.com/mod/owo-lib
MIT License
191 stars 37 forks source link

[Feature request] changing block state on blockComponent #235

Open Bumer-32 opened 5 months ago

Bumer-32 commented 5 months ago

You can choose state when you adding block component

<block state="minecraft:stone">
</block>

but after you can't change it how about add new tag with state? something like

<block>
         <state>minecraft:stone</state>
</block>

then you can change it like text in label:

val label = rootComponent.childById(LabelComponent::class.java, "label")
label.text(Text.literal("something"))
//but with block
val block = rootComponent.childById(BlockComponent::class.java, "block")
block.state(/*block state here*/)