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

Item damage event does not have an event-item value #2895

Closed
ShaneBeee opened this issue Mar 29, 2020 · 0 comments
Closed

Item damage event does not have an event-item value #2895

ShaneBeee opened this issue Mar 29, 2020 · 0 comments
Assignees
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.

Comments

@ShaneBeee
Copy link
Contributor

Description

When using the item damage event, Skript says the event has no item stack.

Steps to Reproduce

simple code:

on item damage:
    set {_i} to event-item

results in the following error:

[15:46:45 ERROR]: [Skript] There's no item stack in an on item damage event (test.sk, line 4: set {_i} to event-item')

now the weird thing is, after writing some random code it started working.
I set up a new server, and it doesn't work on the new server. And I for the life of me cant figure out how I made it work.

Things get weirder. If I run SkriptHub's docs tool on the servers:
New Server:

      "event values": [
        "event-world",
        "event-player"
      ],

Old Server:

      "event values": [
        "event-world",
        "event-player",
        "event-itemstack"
      ],

Skript knows it exists.
This has literally got my mind baffled.

Expected Behavior

There should be an event-value

Errors / Screenshots

see above

Server Information

  • Server version/platform: Paper version git-Paper-146 (MC: 1.15.2)
  • Skript version: 2.5-alpha3

Additional Context

I can easily fix this by adding an event-value to the code.
PR coming soon.

@ShaneBeee ShaneBeee added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. labels Mar 29, 2020
@ShaneBeee ShaneBeee self-assigned this Mar 29, 2020
@ShaneBeee ShaneBeee added the completed The issue has been fully resolved and the change will be in the next Skript update. label Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. completed The issue has been fully resolved and the change will be in the next Skript update. priority: low Issues that are not harmful to the experience but are related to useful changes or additions.
Projects
None yet
Development

No branches or pull requests

1 participant