Skript icon indicating copy to clipboard operation
Skript copied to clipboard

event-itemtype in on pickup event:

Open SebyHas opened this issue 1 year ago • 1 comments

Skript/Server Version

[17:44:04 INFO]: [Skript] Server Version: git-Paper-393 (MC: 1.20.4)
[17:44:04 INFO]: [Skript] Skript Version: 2.8.7 (skriptlang-github)
[17:44:04 INFO]: [Skript] Installed Skript Addons:
[17:44:04 INFO]: [Skript]  - SkCord v2.1-RELEASE
[17:44:04 INFO]: [Skript] Installed dependencies:
[17:44:04 INFO]: [Skript]  - WorldGuard v7.0.9+5934e49

Bug Description

On pickup event event-itemtype give the same result like event-item. if i pick up 64 cooked pork named Cooked Pork, all this expressions give the same result, with "event-item's type" works fine

Expected Behavior

event-item: 64 cooked pork named Cooked Pork event-itemtype: cooked pork

Steps to Reproduce

on player pickup:
	send event-material to player
	send event-itemtype to player
	send event-item to player
	send event-item's type to player#From here works fine
	set {_item} to type of the event-item
	send {_item} to player

Errors or Screenshots

2024-06-22_17 52 54

Other

No response

Agreement

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

SebyHas avatar Jun 22 '24 15:06 SebyHas

This is more of a poor naming choice of item type rather than an actual issue. Skript uses the item type type to represent items in most cases, so event-item and event-itemtype are just two ways to say the same thing. I don't think this is really worth addressing, personally.

sovdeeth avatar Jun 30 '24 09:06 sovdeeth