[SPIGOT-7873] BlockData for Heads/WallHeads is missing a powered state Created: 18/Aug/24 Updated: 25/Dec/24 Resolved: 23/Aug/24 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Brokkonaut | Assignee: | md_5 |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Version: | 1.21.1 |
Guidelines Read: | Yes |
Description |
Since 1.20.2 Heads and WallHeads have powered state for the BlockData, but this is not available in spigot. https://minecraft.wiki/w/Head#Block_states |
Comments |
Comment by md_5 [ 19/Aug/24 ] |
I reckon the data classes should be Skull/WallSkull to match what is used for blocks / item meta but otherwise seems fine. |
Comment by Brokkonaut [ 18/Aug/24 ] |
When creating a powered head it is visible for the client (head animation on the client for the piglin/dragon), that is what we want to use it for.
it is updated when neighbor blocks cause a physics update, just like many other block states.
I tested it with /minecraft:setblock ~ ~ ~ minecraft:piglin_head[powered=true] |
Comment by md_5 [ 18/Aug/24 ] |
Is this value stable? Ie does it change the function of the block by itself and will it persist without hacks like not updating physics? |