Could not find a way to add knockback to entities. After adding a velocity to them they will just slide around indefinitely. Because of this, knockback is only enabled on players for now.
Code has been adapted from the Minetest explosions API mod to have Minecraft-like explosion mechanics and work with MineClone 2.