Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory slot cant be set to a variable anymore. #3357

Closed
L3v3lup opened this issue Aug 31, 2020 · 3 comments
Closed

Inventory slot cant be set to a variable anymore. #3357

L3v3lup opened this issue Aug 31, 2020 · 3 comments
Labels
duplicate For bugs or requests that have already been made and are currently open.

Comments

@L3v3lup
Copy link

L3v3lup commented Aug 31, 2020

Description

Since Beta Update #3, an inventory slot cant be set to a variable anymore.

Steps to Reproduce

Code:

command /test:
	trigger:
		open hopper inventory to player
		set {_value} to "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjIyMWRhNDQxOGJkM2JmYjQyZWI2NGQyYWI0MjljNjFkZWNiOGY0YmY3ZDRjZmI3N2ExNjJiZTNkY2IwYjkyNyJ9fX0"
		set {_skull} to skull from skin with value {_value} signature ""
		set slot 2 of player's current inventory to {_skull} named "&2&lVotelinks des Servers" with lore "&7&oDieses Item kann angeklickt werden," and "&7&oum den Link im Chat zu öffnen."

Expected Behavior

Errors / Screenshots

[17:55:46] [Server thread/ERROR]: [Skript] {_skull} named "Votelinks des Servers" is not an item type (Essentials.sk, line 68: set slot 2 of {_p}'s current inventory to {_skull} named "&2&lVotelinks des Servers" with lore "&7&oDieses Item kann angeklickt werden," and "&7&oum den Link im Chat zu öffnen."')

Server Information

  • Server version/platform: git-Paper-174 / MC 1.16.2
  • Skript version: Skript 2.5-beta3

Additional Context

Broke in the latest update (beta 3)

@L3v3lup L3v3lup changed the title {_skull} named "xxx" is not an item type (Inventory issue) "{_skull} named "xxx" is not an item type" (Inventory issue) Aug 31, 2020
@L3v3lup L3v3lup changed the title "{_skull} named "xxx" is not an item type" (Inventory issue) Inventory slot cant be set to a variable anymore. Aug 31, 2020
@vhone
Copy link

vhone commented Sep 2, 2020

It works correctly when I write down the item name directly, but I get an error when I use variables.

command /test1:
	trigger:
		set {_item} to white stained glass
		set slot 5 of chest inventory with 6 rows to {_item} named "item"
		
		# a slot can't be set to {_item} named "item" because the latter is neither an item type nor an item stack


command /test2:
	trigger:
		set slot 5 of chest inventory with 6 rows to white stained glass named "item"
		
		# non error

@Romitou
Copy link
Member

Romitou commented Sep 2, 2020

Related to #3347

@ShaneBeee
Copy link
Contributor

Closing as duplicate of #3347

@ShaneBeee ShaneBeee added the duplicate For bugs or requests that have already been made and are currently open. label Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For bugs or requests that have already been made and are currently open.
Projects
None yet
Development

No branches or pull requests

4 participants