Add support for 3darmor mod, add poisen food and restructure code