bspkrs / Treecapitator

DaftPVF's Treecapitator mod for Minecraft. Chops down trees in a single blow. Requires bspkrsCore.
http://www.minecraftforum.net/topic/1009577-
42 stars 36 forks source link

Treecapitor seems to like breaking stuff, huh? (in other words, derpy shiz mod is derpy) #30

Closed Wuerfel21 closed 9 years ago

Wuerfel21 commented 9 years ago

Well, i got reports of my mods trees crashing treecapitor. I think it might be related to https://github.com/Wuerfel21/The-Derpy-Shiz-Mod/blob/master/src/main/java/net/wuerfel21/derpyshiz/DerpyEvents.java#L95-L110

bspkrs commented 9 years ago

Why would you add drops to your own block using a general event that fires for every block..? That sort of code belongs in your block class.

Without any sort of stacktrace or log file, there's really nothing that I'm willing to do about this crash that you claim is my fault.

GaeaKat commented 9 years ago

The three override methods on your blocks you want are

@Override
public Item getItemDropped(int meta, Random random, int fortune) {
    returns the item to drop
}

@Override
public int damageDropped(int metadata) {
    return the meta value of the item dropped
}

@Override
public int quantityDropped(int meta, int fortune, Random random) {
   // return amount of the items
}

That will work for all but your darkness one

bspkrs commented 9 years ago

As nekosune discovered, this crash is on your side and can be achieved with ONLY your mod installed by placing TNT next to an Ebony tree and igniting it. https://pastebin.com/gjirVgJW