Skip to content

Named expression returns an inventory when used with variables #1138

Description

console is full of errors like(they didn't appear in previous version):

[09:33:12] [Server thread/ERROR]: [Skript] '::blocks::146} named "&fDouble Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."' is not a valid item data (plotmenu.sk, line 387: player does not have {heads::blocks::146} named "&fDouble Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."')
[09:33:12] [Server thread/ERROR]: [Skript] '::blocks::146} named "&fDouble Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."' is not a valid item data (plotmenu.sk, line 388: give {heads::blocks::146} named "&fDouble Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture." to player')
[09:33:12] [Server thread/ERROR]: [Skript] '::blocks::145} named "&fDouble Red Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."' is not a valid item data (plotmenu.sk, line 393: player does not have {heads::blocks::145} named "&fDouble Red Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."')
[09:33:12] [Server thread/ERROR]: [Skript] '::blocks::145} named "&fDouble Red Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."' is not a valid item data (plotmenu.sk, line 394: give {heads::blocks::145} named "&fDouble Red Sandstone Slab(All sides)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture." to player')
[09:33:13] [Server thread/ERROR]: [Skript] '::mobs::101} named "&fEnder Crystal" with lore "&7You can place ender crystals!"' is not a valid item data (plotmenu.sk, line 426: set slot 3 of player's current inventory to {heads::mobs::101} named "&fEnder Crystal" with lore "&7You can place ender crystals!"')
[09:33:13] [Server thread/ERROR]: [Skript] '::blocks::130} named "&fRedstone Lamp (ON)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."' is not a valid item data (plotmenu.sk, line 428: set slot 5 of player's current inventory to {heads::blocks::130} named "&fRedstone Lamp (ON)" with lore "&cThis block places as a full block||&cHead is only used for inventory||&ctexture."')

so looks like it's something to-do with setting heads saved in variables.
I also noticed this happening with other blocks than heads, so might be not only head related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions