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

Selecting doors in different directions #3551

Closed
Zyphrono opened this issue Nov 17, 2020 · 6 comments
Closed

Selecting doors in different directions #3551

Zyphrono opened this issue Nov 17, 2020 · 6 comments
Labels
duplicate For bugs or requests that have already been made and are currently open. legacy versions Issues or PRs which are only applicable for the server versions 1.9-1.12

Comments

@Zyphrono
Copy link

Description

Doors cannot be selected with target block when looking in certain directions. This bug appeared several times in earlier versions of skript and also got fixed plenty of times. Sadly, it reappeared in the recent version (2.5.1)

It totally depends on how you place the door.

Steps to Reproduce

Depending on how you actually place the door, it can only be detected when looking at it in one direction.

  1. Place the door
  2. Set a variable to the target block (only works if you look at the bottom part of the door for some reason)
  3. Check if the variable is a door (if {variable} is door)

Expected Behavior

Should work when facing the door in all directions.

Errors / Screenshots

No errors are being logged.

Server Information

  • Server version/platform: Paperspigot 1.12.2 build 1618
  • Skript version: 2.5.1 (stable)
@Zyphrono
Copy link
Author

Still reproducible in 2.5.3

@TPGamesNL
Copy link
Member

I cannot reproduce. It might help if you specify exactly which direction and door facing you're using, possibly providing screenshots.

@TPGamesNL TPGamesNL added the waiting for reply The report needs a response from the reporter to determine course of action. label Mar 15, 2021
@Zyphrono
Copy link
Author

Zyphrono commented Mar 28, 2021

Code:

command /checkifdoor:
    trigger:
        set {_door} to target block
        if {_door} is door:
            send "Yup, that's a door!"
        else:
            send "Nope, that isn't a door!"

Video:
https://youtu.be/5pwcXpiXn9k

@TPGamesNL
Copy link
Member

Alright I can confirm this on Spigot 1.12.2, not on Paper 1.16.5

@TPGamesNL TPGamesNL 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. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). and removed waiting for reply The report needs a response from the reporter to determine course of action. priority: low Issues that are not harmful to the experience but are related to useful changes or additions. labels Mar 28, 2021
@TPGamesNL
Copy link
Member

Seems that directional block comparison is broken on 1.12, tested with doors and stairs

@TPGamesNL TPGamesNL added the legacy versions Issues or PRs which are only applicable for the server versions 1.9-1.12 label Jun 22, 2021
@TheLimeGlass
Copy link
Collaborator

Duplicate #2711

@TheLimeGlass TheLimeGlass added duplicate For bugs or requests that have already been made and are currently open. and removed bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For bugs or requests that have already been made and are currently open. legacy versions Issues or PRs which are only applicable for the server versions 1.9-1.12
Projects
None yet
Development

No branches or pull requests

3 participants