Name of a placed player head block returns <none> #6826
Labels
enhancement
Feature request, an issue about something that could be improved, or a PR improving something.
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
Update 1.20.5+ added the ability for player heads to keep their custom name when placed, similar to other block entities.
That said, Skript returns
<none>
when prompted withname of {_player_head}
Expected Behavior
Skript should return the text component associated with
string tag "custom_name" of components nbt of {_player_head}
Also I just noticed after some debugging that normally, the custom name is in a 'CustomName' tag instead of 'custom_name' so it's a minecraft discrepancy. Though it should still be logical that the name of a player head be captured by the
name of
effectSteps to Reproduce
1: Get a chest, player head, and anvil in Creative mode.
2: Place anvil and rename both the chest and the player head
3: Load the following skript:
4: Place the chest and notice it correctly returns the text component
5: Place the player head (on ground and on wall) and notice it returns
<none>
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: