Skript: event-item bug

Created on 15 Jan 2020  路  15Comments  路  Source: SkriptLang/Skript

Description

"event-item" which worked well in version 2.4, does not work.

Steps to Reproduce

on rightclick:
       if player is sneaking:
               message "%type of event-item%" to player

Errors / Screenshots

2020-01-16_07 05 59

Server Information

  • Server version/platform: 1.15.1
  • Skript version: 2.5-alpha
bug completed high

All 15 comments

I did some testing, and this only seems to be an issue with click events. The issue is that the event-item is returning no value, not the type expression.

well in my skripts
"set {_y} to number of event-item in player's inventory"
doesn't work too :(

well in my skripts
"set {_y} to number of event-item in player's inventory"
doesn't work too :(

"event-item" seems to be the problem.

Give there a priority and event-entity, does not work too

have a Hope this, 2714 and 2802 will be fixed in next release

@TheLimeGlass No, this is separate issue that may be caused by same underlying issue.

I think the "issue" here is whether or not you consider this an issue.

Prior versions, event-item returned the player's tool.
Whereas now it returns the item type you clicked on.
In this case, you didn't click on anything, hence it being none.
If you right-clicked on grass it would return grass.

Now, in my option, I think this way makes more sense.
event-item = clicked block
player's tool = thing in hand.

Personally I wouldn't classify this as a bug, but maybe a change for the better?
I guess the "issue" here is that it changed, which could potentially break scripts.

Event item used to give the item that was activated by clicking, which could be offhand item too.

https://pastebin.com/Dxxpc2MA

With event-item doesn't work porperly you can't get "set {_y} to number of event-item in player's inventory" - changing it to number of player's tool causes issue, that it can't be more than one and breaks this checks system which works good on 2.4

?!??? How its still need-testing??? Its a bug, go and fix it.

I hope it'll get fixed and then I'll update from 2.4.1 ;|

?!??? How its still need-testing??? It's a bug, go and fix it.

I don't even know hot to reply to you. Your utter rudeness and sheer ignorance is really bothering me, and some others.
This is an open source project, please feel free to fix it and submit a PR.

?!??? How its still need-testing??? It's a bug, go and fix it.

I don't even know hot to reply to you. Your utter rudeness and sheer ignorance is really bothering me, and some others.

I got little rage because Dev of SkQuery has answer me after 2 months of my report bug and said "this is Skript bug". And there is still no update in mean need-testing. Its again my fault because your arguments are not possible to break. Apologies.

This is an open source project, please feel free to fix it and submit a PR.

Good to know.

This is still a present issue. event-item is returning the wrong value, and this may have broke many scripts.

Was this page helpful?
0 / 5 - 0 ratings