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

on break part data of event-block #2736

Closed
zidlsl opened this issue Jan 1, 2020 · 4 comments
Closed

on break part data of event-block #2736

zidlsl opened this issue Jan 1, 2020 · 4 comments
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

@zidlsl
Copy link

zidlsl commented Jan 1, 2020

on right click:
    broadcast "%data of event-block%" -> 0

wheat's data is 7 but send 0

Server Information

  • Server version/platform: 1.12.2
  • Skript version: 2.4

Additional Context

@Wealthyturtle Wealthyturtle added the needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. label Jan 1, 2020
@ShaneBeee
Copy link
Contributor

As per the docs for Data Value as seen here:

[the] ((data|damage)[s] [value[s]]|durabilit(y|ies)) of %item stacks/slots%
%item stacks/slots%'[s] ((data|damage)[s] [value[s]]|durabilit(y|ies))

This expression is for item stacks and slots, not blocks. I'll be honest, I'm not even sure why its sending 0, it should be sending an error.

@Wealthyturtle Wealthyturtle 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. and removed needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. labels Jan 3, 2020
@Wealthyturtle
Copy link
Member

Will try fixing this issue in #2510.

@Wealthyturtle
Copy link
Member

Edit: Too complex, will solve in another PR.

@TheLimeGlass
Copy link
Collaborator

TheLimeGlass commented Feb 24, 2020

The issue is event-block and event-item not returning.

The data syntax will return 0 when it's given object is null.

@ShaneBeee ShaneBeee added the completed The issue has been fully resolved and the change will be in the next Skript update. label Aug 14, 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

4 participants