thanks guys. this was a nice push for me.
and jabelar your blog is awesome.
The Documention of forge is nice but im looking for something like this https://docs.oracle.com/javase/7/docs/api/
public void BlockHarvested(BlockEvent.BreakEvent event) {
if (event.getState().getBlock().isWood(event.getWorld(), event.getPos())) {
System.out.println("It Works!");
}
}
this is my event. it works fine now.
Now I just need a method to delete everything around the harvested block.
Could someone correct me if i have the wrong idea.
I was thinking about a method which has 2 or 3 for loops (for x,y and perhaps z) with a max_radius of maybe 4 which
has 2 conditions .
if leaves || if wood -> break. block.
And around the for loops i need my condition isAxe.
If im correct I just need to find out how the Syntax works to do something like this