[SPIGOT-7177] Certain blocks Don't call BlockCanBuildEvent Created: 27/Oct/22  Updated: 25/Dec/24  Resolved: 28/Oct/22

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Brian Fopiano Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: BlockCanBuildEvent, CanPlace
Environment:

Purpur, but the issue I'm having is a Bukkit-to-Spigot issue.  During development.
But if I need to update just to tell you there is an issue in Bukkit I will.


Attachments: PNG File 1.png     PNG File 2.png     PNG File 3.png     File Video Example.mp4    
Version:  1825
Plugin: Not Applicable
Guidelines Read: Yes

 Description   

The Event: BlockCanBuildEvent, Is not fired with Torches (Wall or standing items specifically) 

Block item has a CanPlace call, and that works just fine.
However
Standing And WallBlockItem dont call this at all.
Because the placement state is Overridden.

Here are some Screenshots followed by a snippet of code, and a video.
Snippet:

@EventHandler(priority = EventPriority.HIGHEST)
public void on(BlockCanBuildEvent e) {
    System.out.println("BlockCanBuildEvent Called");
} 

Just toss it somewhere, works for blocks but not on torches or things of that nature



 Comments   
Comment by Brian Fopiano [ 04/Nov/22 ]

What?

Comment by Natalie Wood [ 03/Nov/22 ]

He's not Talking about that event, don't worry i thought the same to...[url removed]

Generated at Fri Mar 21 08:38:26 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.