Skript

Skript

743k Downloads

plain %itemtype% not working for comparisons

ShaneBeee opened this issue · 2 comments

commented

Skript/Server Version

[08:06:58 INFO]: [Skript] Server Version: 1.21-DEV-aa8d38d (MC: 1.21)
[08:06:58 INFO]: [Skript] Skript Version: 2.9.0-pre1 (selfbuilt-unknown)
[08:06:58 INFO]: [Skript] Installed Skript Addons: 
[08:06:58 INFO]: [Skript]  - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[08:06:58 INFO]: [Skript]  - SkBee v3.5.6 (https://github.com/ShaneBeee/SkBee)
[08:06:58 INFO]: [Skript]  - SkBriggy v1.3.2 (https://github.com/ShaneBeee/SkBriggy)
[08:06:58 INFO]: [Skript] Installed dependencies: 
[08:06:58 INFO]: [Skript]  - Vault v1.7.3-b131

Bug Description

I noticed recently that when comparing items with plain %itemtype% it appears to fail.

Expected Behavior

I would expect the comparison to work properly.

Steps to Reproduce

did a couple different tests:

command /test:
	trigger:
		if player has plain cobblestone:
			send "&aYAY"
		else:
			send "&cBOO"
Screenshot 2024-07-04 at 8 05 12 AM
command /test:
	trigger:
		if player's tool is plain cobblestone:
			send "&aYAY"
		else:
			send "&cBOO"
Screenshot 2024-07-04 at 8 06 09 AM

(ran the command on both items in hand, also did another with a single item stack, same result.)

Errors or Screenshots

No response

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

Plain also makes it a stack of 1 iirc

I did tests with single stacks as well, and no-go.

commented

Plain also makes it a stack of 1 iirc