Skip to content

[BUG] is block comparison #5536

@Fusezion

Description

@Fusezion

Skript/Server Version

[06:57:49 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[06:57:49 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[06:57:49 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[06:57:49 INFO]: [Skript] Server Version: git-Paper-307 (MC: 1.19.2)
[06:57:49 INFO]: [Skript] Skript Version: 2.7.0-beta1 (skriptlang-github)
[06:57:49 INFO]: [Skript] Installed Skript Addons: 
[06:57:49 INFO]: [Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[06:57:49 INFO]: [Skript]  - SkBee v2.7.8 (https://github.com/ShaneBeee/SkBee)
[06:57:49 INFO]: [Skript] Installed dependencies: None

Bug Description

When attempting to compare a variable with is a block, the script is unable to determiner if this it true and returns false

Expected Behavior

For the output to return true if given item is a valid block type

Steps to Reproduce

command /example <block:item>:
  trigger:
    send "Literal: stone is a block" if stone is a block, else "Literal: stone is not a block"
    send "NonLiteral: %{_block}% is a block" if {_block} is a block, else "NonLiteral: %{_block}% is not a block"

Errors or Screenshots

image

Other

No response

Agreement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions