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

Iron Doors bug #2244

Closed
Tadehz opened this issue Jul 9, 2019 · 5 comments
Closed

Iron Doors bug #2244

Tadehz opened this issue Jul 9, 2019 · 5 comments

Comments

@Tadehz
Copy link

Tadehz commented Jul 9, 2019

When you right click on iron door, nothing happens even if you call a on right click event.

on right click on iron door: send "This works" to player

I expected to get a message when I right clicked on the iron door.

No errors at all, just nothing happens on right click.

  • Server version/platform: 1.12.2
  • Skript version: Skript bensku-2.4-alpha4
@pobab
Copy link

pobab commented Jul 10, 2019

on right click:
 if event-block is iron door:
  send "hi" to player

@Tadehz
Copy link
Author

Tadehz commented Jul 11, 2019

tried to do this twenty times before this post, doesn't work :)

@ShaneBeee
Copy link
Contributor

This is due to some material mappings that are messed up for 1.12.2 and below.
I don't mean to sound rude but I have told Bensku this a few times now, and each time he tells me I'm wrong.

As a temp solution you can do the following and it will work

on right click:
	if "%type of event-block%" = "IRON_DOOR_BLOCK":

@bensku
Copy link
Member

bensku commented Jul 12, 2019

The material mappings are not wrong, it is just that some Minecraft 1.12.2 ids map to multiple Bukkit materials. There is a workaround, but it doesn't currently apply to doors:

public static Material asBlock(Material type) {

@TheBentoBox
Copy link
Member

Closing in favor of #2394 as it is the same bug and that one better describes the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants