File size: 332 Bytes
8524bea
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
// Use ModAPI.util.getMethodFromPackage to find the internal name of the block destroy effect method
// and we replace it with our own function, that does nothing.
ModAPI.hooks.methods[
    ModAPI.util.getMethodFromPackage(
        "net.minecraft.client.particles.EffectRenderer",
        "addBlockDestroyEffects"
    )
] = () => {}