Tower Defense Units Mod (1.18.2, 1.8.1) adds new units to protect your base from threats. Each unit has its own characteristics and strategies.
You can give a unit a Diamond Block to increase its ultimate power. This is useful if there’s an invasion of mobs attacking you; however, the ultimate power should be used only as a last resort against hostile mobs.