Moved anvil code to a base command so it can be used with warps and spawns